mirror of
https://github.com/vlang/v.git
synced 2025-09-16 16:02:29 +03:00
parser: []int{cap:cap, len:len}
syntax; minor fixes
This commit is contained in:
parent
893d14ef8f
commit
ec10831318
7 changed files with 79 additions and 26 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue