/* Simple test for when expressions with equals */ /* Test basic when with equals */ test1 : when 5 = 5 is true then "equal" _ then "not equal"; ..out test1; /* Test multiple values with different patterns */ test2 : when 5 = 5 3 = 3 is 1 1 then "both equal" 1 0 then "first equal" 0 1 then "second equal" 0 0 then "neither equal"; ..out test2;