title: Start
---
// Expression testing
<<set $test to 1>>
<<call assert($test == 1)>>
// Test unary operators
// Not supported in yarn v2.3+: <<call assert(!$test == false)>>
<<call assert(-$test == -1)>>
<<call assert(-$test == 0 - 1)>>
// Test more complex expressions
<<set $math = 5 * 2 - 2 * -1 >>
<<call assert($math is 12)>>
// Test % operator
<<set $math = 12 >>
<<set $math = $math % 5 >>
<<call assert($math is 2)>>
// Test floating point math
<<call assert(1 / 2 == 0.5)>>
<<call assert(0.1 + 0.1 == 0.2)>>
===