about summary refs log tree commit diff stats
path: root/js/scripting-lang/tests/05_io_operations.txt
blob: a16bf94847e189b05d38487d383bc09cdb10966e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* Unit Test: IO Operations */
/* Tests: ..out, ..assert operations */

/* Test basic output */
..out "Testing IO operations";

/* Test assertions */
x : 5;
y : 3;
sum : x + y;

..assert x = 5;
..assert y = 3;
..assert sum = 8;
..assert x > 3;
..assert y < 10;
..assert sum != 0;

/* Test string comparisons */
..assert "hello" = "hello";
..assert "world" != "hello";

/* Test complex assertions */
..assert (x + y) = 8;
..assert (x * y) = 15;
..assert (x > y) = true;

..out "IO operations test completed";