diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2020-07-02 16:09:21 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-03 19:30:13 +0200 |
commit | 4c48c9d69d3a949b7e434108173eee604a3235c1 (patch) | |
tree | bb574a33d977c6bf0d71f2fe6a26abb6f65cf8ff /Libraries/LibJS/Tests/ternary-basic.js | |
parent | 21064a1883d61624f4ec4069c80e0cd8aac0c1ea (diff) | |
download | serenity-4c48c9d69d3a949b7e434108173eee604a3235c1.zip |
LibJS: Reorganize tests into subfolders
Diffstat (limited to 'Libraries/LibJS/Tests/ternary-basic.js')
-rw-r--r-- | Libraries/LibJS/Tests/ternary-basic.js | 21 |
1 files changed, 0 insertions, 21 deletions
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); -} |