二进制求和
This commit is contained in:
6
test/math/add-binary.test.js
Normal file
6
test/math/add-binary.test.js
Normal file
@ -0,0 +1,6 @@
|
||||
import { addBinary } from '../../src/math/add-binary'
|
||||
|
||||
test('二进制求和', () => {
|
||||
expect(addBinary('11', '1')).toEqual('100')
|
||||
expect(addBinary('1010', '1011')).toEqual('10101')
|
||||
})
|
Reference in New Issue
Block a user