mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
20 lines
214 B
Go
20 lines
214 B
Go
const (
|
|
a = 3
|
|
u = u64(1)
|
|
)
|
|
|
|
fn test_const() {
|
|
b := (true && true) || false
|
|
assert b == true
|
|
assert a == 3
|
|
assert u == u64(1)
|
|
}
|
|
|
|
/*
|
|
fn test_cmp() {
|
|
assert 1 ≠ 2
|
|
assert 1 ⩽ 2
|
|
assert 1 ⩾ 0
|
|
}
|
|
*/
|