mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2026-03-13 15:21:15 +08:00
committed by
GitHub
parent
2af75f62c8
commit
eab57b880a
10
Maths/test/BInaryConvert.test.js
Normal file
10
Maths/test/BInaryConvert.test.js
Normal file
@@ -0,0 +1,10 @@
|
||||
import { BinaryConvert } from '../BinaryConvert'
|
||||
|
||||
describe('Binary Convert', () => {
|
||||
it('should return the correct value', () => {
|
||||
expect(BinaryConvert(12)).toBe(1100)
|
||||
})
|
||||
it('should return the correct value of the sum from two number', () => {
|
||||
expect(BinaryConvert(12 + 2)).toBe(1110)
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user