Files
JavaScript/Maths/test/BInaryConvert.test.js
Arwy Syahputra Siregar eab57b880a add binary convert (#521)
* add  binary convert
2020-10-31 20:22:50 +05:30

11 lines
307 B
JavaScript

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