mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: []int{cap:cap, len:len}
syntax; minor fixes
This commit is contained in:
@@ -691,3 +691,8 @@ fn test_hex(){
|
||||
st1 := [byte(0x41)].repeat(100)
|
||||
assert st1.hex() == "41".repeat(100)
|
||||
}
|
||||
|
||||
fn test_array_with_cap() {
|
||||
a := []int{cap:10, len:1 }
|
||||
//assert a.len == 1
|
||||
}
|
||||
|
Reference in New Issue
Block a user