ternary operator tests defined and skipped

This commit is contained in:
Umur Ozkul 2022-04-22 20:57:07 +02:00
parent 2c5c5095b8
commit 0ccbf607a2

View File

@ -0,0 +1,12 @@
open Jest
open Reducer_TestHelpers
Skip.describe("Parse ternary operator", () => {
testParseToBe("true ? 'YES' : 'NO'", "Ok('YES')")
testParseToBe("false ? 'YES' : 'NO'", "Ok('NO')")
})
Skip.describe("Evaluate ternary operator", () => {
testEvalToBe("true ? 'YES' : 'NO'", "Ok('YES')")
testEvalToBe("false ? 'YES' : 'NO'", "Ok('NO')")
})