oa-corner-index.test.js 429 B

123456789101112
  1. // mobile-h5/utils/oa-corner-index.test.js
  2. import assert from 'node:assert/strict'
  3. import { formatCornerIndex } from './oa-corner-index.js'
  4. assert.equal(formatCornerIndex(1), '01')
  5. assert.equal(formatCornerIndex(9), '09')
  6. assert.equal(formatCornerIndex(10), '10')
  7. assert.equal(formatCornerIndex(11), '11')
  8. assert.equal(formatCornerIndex(99), '99')
  9. assert.equal(formatCornerIndex(100), '100')
  10. console.log('oa-corner-index: ok')