| 1 | module main |
| 2 | import forkedtest |
| 3 | |
| 4 | const ( |
| 5 | integer1 = 111 |
| 6 | integer2 = 222 |
| 7 | integer3 = integer1+integer2 |
| 8 | integer9 = integer3 * 3 |
| 9 | abc = "123" |
| 10 | ) |
| 11 | |
| 12 | fn check_const_initialization() { |
| 13 | assert abc == "123" |
| 14 | assert integer9 == 999 |
| 15 | } |
| 16 | |
| 17 | fn main(){ |
| 18 | mut fails := 0 |
| 19 | fails += forkedtest.normal_run(check_const_initialization, "check_const_initialization") |
| 20 | assert fails == 0 |
| 21 | sys_exit(0) |
| 22 | } |
| 23 |