mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix Bytearray.insert, Bytearray.remove
This commit is contained in:
parent
fb07c86ea6
commit
1ade910fa1
2 changed files with 12 additions and 2 deletions
|
|
@ -13,3 +13,12 @@ end
|
|||
|
||||
Bytearray.remove(arr, 2)
|
||||
assert(#arr == 9)
|
||||
|
||||
Bytearray.insert(arr, {5, 3, 6})
|
||||
|
||||
assert(#arr == 12)
|
||||
Bytearray.insert(arr, 2, 8)
|
||||
assert(#arr == 13)
|
||||
for i=1,10 do
|
||||
assert(arr[i] == 10 - i)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue