about summary refs log tree commit diff stats
path: root/js/scripting-lang/scratch_tests/test_comparison_functions.txt
blob: d3f673a1e36a9292885e3a2e2a93f319e1e940c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Test comparison functions */

/* Test greaterThan */
gt_1 : greaterThan 5 3;
gt_2 : greaterThan 3 5;
gt_3 : greaterThan 3 3;
..assert gt_1 = true;
..assert gt_2 = false;
..assert gt_3 = false;

/* Test equals */
eq_1 : equals 5 5;
eq_2 : equals 5 3;
..assert eq_1 = true;
..assert eq_2 = false;

..out "Comparison functions test completed";