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

scanner: enable 0oxx to handle octals

This commit is contained in:
yuyi
2020-02-23 19:33:07 +08:00
committed by GitHub
parent 26fa833984
commit adb1d3f8c9
3 changed files with 19 additions and 20 deletions

View File

@@ -113,3 +113,10 @@ fn test_hex() {
x := u64(10)
assert x.hex() == '0xa'
}
fn test_oct() {
x1 := 0o12
assert x1 == 10
x2 := 012
assert x2 == 10
}