v/vlib/builtin/int_test.v

20 lines
214 B
Go
Raw Normal View History

2019-08-04 07:16:44 +00:00
const (
a = 3
u = u64(1)
2019-08-04 07:16:44 +00:00
)
fn test_const() {
b := (true && true) || false
assert b == true
2019-08-04 07:16:44 +00:00
assert a == 3
assert u == u64(1)
2019-08-04 07:16:44 +00:00
}
2019-08-05 14:57:54 +00:00
2019-08-09 08:21:21 +00:00
/*
2019-08-05 14:57:54 +00:00
fn test_cmp() {
assert 1 2
assert 1 2
assert 1 0
}
2019-08-09 08:21:21 +00:00
*/