1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

as casting

This commit is contained in:
Alexander Medvednikov
2019-12-30 10:45:56 +01:00
parent 2d597d7804
commit cba6a6fdea
3 changed files with 18 additions and 2 deletions

View File

@ -44,6 +44,10 @@ fn test_float_equal_operator() {
assert a.gtbit(1)
assert a >= 1
assert a.gebit(1)
f := 1.2
ab := f as int
assert ab == 1
}
fn test_str_methods() {