add kata
This commit is contained in:
19
5kyu/buddy-pairs/tests.ts
Normal file
19
5kyu/buddy-pairs/tests.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { assert } from "chai";
|
||||
import { buddy } from "./solution";
|
||||
|
||||
|
||||
describe("buddy", function() {
|
||||
|
||||
function testing(start: number, limit: number, expect:number[]) {
|
||||
let actual = buddy(start, limit);
|
||||
assert.deepEqual(actual, expect);
|
||||
}
|
||||
|
||||
it("Basic tests", function() {
|
||||
testing(10, 50, [48, 75] );
|
||||
testing(1071625, 1103735, [1081184, 1331967] );
|
||||
testing(57345, 90061, [62744, 75495] );
|
||||
testing(2382, 3679, [] );
|
||||
|
||||
})
|
||||
});
|
||||
Reference in New Issue
Block a user