// test for ternary

result = (true?3:4)==3 && (false?5:6)==6;

// test for ternary

assert ((true?3:4) == 3, "First check");
assert ((false?5:6)==6, "Second check");

result = 1;

Test refactored to get better error location.
Test refactored to get better error location.