二进制求和

This commit is contained in:
2020-06-23 13:52:47 +08:00
parent fb6131a64e
commit e5a2f13ee2
3 changed files with 20 additions and 0 deletions

View 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')
})