merge stdlib tests (#9439)
This commit is contained in:
parent
3b1ade0350
commit
9fb212cfdf
28 changed files with 458 additions and 522 deletions
|
|
@ -1,36 +0,0 @@
|
|||
discard """
|
||||
file: "tropes.nim"
|
||||
output: '''0
|
||||
3
|
||||
|
||||
123
|
||||
3
|
||||
6
|
||||
123
|
||||
123456
|
||||
2
|
||||
3'''
|
||||
"""
|
||||
import ropes
|
||||
|
||||
var
|
||||
r1 = rope("")
|
||||
r2 = rope("123")
|
||||
|
||||
echo r1.len
|
||||
echo r2.len
|
||||
|
||||
echo r1
|
||||
echo r2
|
||||
|
||||
r1.add("123")
|
||||
r2.add("456")
|
||||
|
||||
echo r1.len
|
||||
echo r2.len
|
||||
|
||||
echo r1
|
||||
echo r2
|
||||
|
||||
echo r1[1]
|
||||
echo r2[2]
|
||||
Loading…
Add table
Add a link
Reference in a new issue