summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Tests/operators/bitwise-not.js
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibJS/Tests/operators/bitwise-not.js')
-rw-r--r--Libraries/LibJS/Tests/operators/bitwise-not.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/Libraries/LibJS/Tests/operators/bitwise-not.js b/Libraries/LibJS/Tests/operators/bitwise-not.js
deleted file mode 100644
index 1ad75d5c92..0000000000
--- a/Libraries/LibJS/Tests/operators/bitwise-not.js
+++ /dev/null
@@ -1,23 +0,0 @@
-test("basic functionality", () => {
- expect(~0).toBe(-1);
- expect(~1).toBe(-2);
- expect(~2).toBe(-3);
- expect(~3).toBe(-4);
- expect(~4).toBe(-5);
- expect(~5).toBe(-6);
- expect(~-1).toBe(0);
- expect(~42).toBe(-43);
- expect(~9999).toBe(-10000);
-});
-
-test("non-numeric values", () => {
- expect(~"42").toBe(-43);
- expect(~"foo").toBe(-1);
- expect(~[]).toBe(-1);
- expect(~{}).toBe(-1);
- expect(~undefined).toBe(-1);
- expect(~null).toBe(-1);
- expect(~NaN).toBe(-1);
- expect(~Infinity).toBe(-1);
- expect(~-Infinity).toBe(-1);
-});