We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57b762d commit 7019524Copy full SHA for 7019524
three-in-one-lcci/test.ts
@@ -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
11
+ assertEquals(true, tio.isEmpty(0));
12
+});
0 commit comments