mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 16:26:47 +08:00
8 lines
162 B
JavaScript
8 lines
162 B
JavaScript
import { logTwo } from '../LogTwo'
|
|
|
|
for (let i = 1; i < 100; i++) {
|
|
test('log2(' + i + ')', () => {
|
|
expect(logTwo(i)).toBe(Math.floor(Math.log2(i)))
|
|
})
|
|
}
|