From 4c48c9d69d3a949b7e434108173eee604a3235c1 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Thu, 2 Jul 2020 16:09:21 -0700 Subject: LibJS: Reorganize tests into subfolders --- Libraries/LibJS/Tests/ternary-basic.js | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 Libraries/LibJS/Tests/ternary-basic.js (limited to 'Libraries/LibJS/Tests/ternary-basic.js') diff --git a/Libraries/LibJS/Tests/ternary-basic.js b/Libraries/LibJS/Tests/ternary-basic.js deleted file mode 100644 index c01f611902..0000000000 --- a/Libraries/LibJS/Tests/ternary-basic.js +++ /dev/null @@ -1,21 +0,0 @@ -load("test-common.js"); - -try { - var x = 1; - - assert(x === 1 ? true : false); - assert((x ? x : 0) === x); - assert(1 < 2 ? (true) : (false)); - assert((0 ? 1 : 1 ? 10 : 20) === 10); - assert((0 ? 1 ? 1 : 10 : 20) === 20); - - var o = {}; - o.f = true; - assert(o.f ? true : false); - - assert(1 ? o.f : null); - - console.log("PASS"); -} catch (e) { - console.log("FAIL: " + e); -} -- cgit v1.2.3