Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 500 Bytes
// Note: These tests implicitly depend on non-zero ints being truthy.
// Negates a boolean.
print(not true) // expect: false
print(not false) // expect: true
// Is true if the argument is falsy.
print(not 0) // expect: true
// Is false if the argument is truthy.
print(not 1) // expect: false
// Is higher precedence than "and" and "or".
print(not false and false) // expect: false
print(not true or true) // expect: true
// TODO(bob):
// - Should call "true?" on its argument.
// - Precedence.
Something went wrong with that request. Please try again.