Files
typescript-katas/5kyu/count-ip-addresses/tests.ts
2025-02-01 23:50:01 +01:00

11 lines
417 B
TypeScript

// See https://www.chaijs.com for how to use Chai.
import { assert } from "chai";
import { ipsBetween } from "./solution";
// TODO Add your tests here
describe("example", function() {
it("test", function() {
assert.equal(ipsBetween("10.0.0.0", "10.0.0.50"), 50, 'ipsBetween("10.0.0.0", "10.0.0.50")');
assert.equal(ipsBetween("20.0.0.10", "20.0.1.0"), 246, 'ipsBetween("20.0.0.10", "20.0.1.0")');
});
});