Skip to content

Commit 7019524

Browse files
committed
Create test.ts
1 parent 57b762d commit 7019524

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

three-in-one-lcci/test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { assertEquals } from "https://deno.land/[email protected]/testing/asserts.ts";
2+
import TripleInOne from "./index.ts";
3+
4+
Deno.test("three-in-one-lcci", () => {
5+
const tio = new TripleInOne(1);
6+
tio.push(0, 1);
7+
tio.push(0, 2);
8+
assertEquals(1, tio.pop(0));
9+
assertEquals(-1, tio.pop(0));
10+
assertEquals(-1, tio.pop(0));
11+
assertEquals(true, tio.isEmpty(0));
12+
});

0 commit comments

Comments
 (0)