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