|
|
@@ -0,0 +1,12 @@
|
|
|
+// mobile-h5/utils/oa-corner-index.test.js
|
|
|
+import assert from 'node:assert/strict'
|
|
|
+import { formatCornerIndex } from './oa-corner-index.js'
|
|
|
+
|
|
|
+assert.equal(formatCornerIndex(1), '01')
|
|
|
+assert.equal(formatCornerIndex(9), '09')
|
|
|
+assert.equal(formatCornerIndex(10), '10')
|
|
|
+assert.equal(formatCornerIndex(11), '11')
|
|
|
+assert.equal(formatCornerIndex(99), '99')
|
|
|
+assert.equal(formatCornerIndex(100), '100')
|
|
|
+
|
|
|
+console.log('oa-corner-index: ok')
|