| 1 | test { |
| 2 | try std.testing.expect(true); |
| 3 | } |
| 4 | |
| 5 | test "equality" { |
| 6 | try std.testing.expect(one() == 1); |
| 7 | } |
| 8 | |
| 9 | test "arithmetic" { |
| 10 | try std.testing.expect(one() + 2 == 3); |
| 11 | } |
| 12 | |
| 13 | fn one() u32 { |
| 14 | return 1; |
| 15 | } |
| 16 | |
| 17 | const std = @import("std"); |