Files
wren/test/number_minus.wren
T

11 lines
210 B
Plaintext
Raw Normal View History

2013-11-13 07:10:52 -08:00
// Infix.
2013-11-09 21:32:57 -08:00
io.write(5 - 3) // expect: 2
io.write(3.1 - 0.24) // expect: 2.86
io.write(3 - 2 - 1) // expect: 0
2013-10-31 07:04:44 -07:00
2013-11-13 07:10:52 -08:00
// Unary negation.
var a = 3
io.write(-a) // expect: -3
2013-10-31 07:04:44 -07:00
// TODO(bob): Unsupported RHS types.