二进制求和

This commit is contained in:
yige committed 2020-06-23 13:52:47 +08:00
1 parent fb6131a64e
commit e5a2f13ee2
3 files changed
+20

No files matched your search

+6
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')
})