js-practice/test/math/ugly-number-ii.test.js

8 lines
203 B
JavaScript
Raw Normal View History

2019-03-10 16:43:04 +08:00
import { nthUglyNumber } from '../../src/math/ugly-number-ii.js'
test('丑数 II', () => {
expect(nthUglyNumber(9)).toBe(10)
expect(nthUglyNumber(1)).toBe(1)
expect(nthUglyNumber(10)).toBe(12)
})