mirror of
https://github.com/sigmasternchen/macrofuck
synced 2025-03-15 07:08:56 +00:00
test: Add test for str subscripts
This commit is contained in:
parent
731ab2ff7a
commit
c71a63e821
2 changed files with 5 additions and 0 deletions
3
compiler/test/cases/020f-array-subscript-of-str.in
Normal file
3
compiler/test/cases/020f-array-subscript-of-str.in
Normal file
|
@ -0,0 +1,3 @@
|
|||
var foo = "Hello, World!";
|
||||
|
||||
print(foo[0], foo[4], foo[0], foo[4], '\n');
|
2
compiler/test/cases/020f-array-subscript-of-str.out
Normal file
2
compiler/test/cases/020f-array-subscript-of-str.out
Normal file
|
@ -0,0 +1,2 @@
|
|||
[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>[-]++++++++++++++++++++++++++++++++++++++++++++>[-]++++++++++++++++++++++++++++++++>[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>[-]++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>[-]+++++++++++++++++++++++++++++++++
|
||||
>[-]++++++++++<<<<<<<<<<<<<.>>>>.<<<<.>>>>.>>>>>>>>>.
|
Loading…
Reference in a new issue