mirror of
https://github.com/Reuh/anselme.git
synced 2025-10-27 16:49:31 +00:00
Add test for constant aliases and text trailing space removal
This commit is contained in:
parent
bc41dd1dd2
commit
db8ae03927
4 changed files with 42 additions and 0 deletions
12
test/results/symbol alias constant.ans
Normal file
12
test/results/symbol alias constant.ans
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
--# run #--
|
||||||
|
--- text ---
|
||||||
|
| {}"c=" {}"2" {}" (2)" |
|
||||||
|
| {}"l=" {}"*[1, 2, 3]" {}" (*[1,2,3])" |
|
||||||
|
--- text ---
|
||||||
|
| {}"d=" {}"2" {}" (2)" |
|
||||||
|
--- error ---
|
||||||
|
[0m[31m[0m[31mtrying to change the value of constant d[0m
|
||||||
|
↳ from [4mtest/tests/symbol alias constant.ans:12:3[0m in assignment: [2md = 5[0m[0m
|
||||||
|
↳ from [4m?[0m in block: [2m:l = *[1, 2, 3]…[0m
|
||||||
|
--# saved #--
|
||||||
|
{}
|
||||||
12
test/results/text strip trailing space.ans
Normal file
12
test/results/text strip trailing space.ans
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
--# run #--
|
||||||
|
--- text ---
|
||||||
|
| {}"" {}"a" {}" == " {}"a" {}"" |
|
||||||
|
| {}"" {}"a" {}" == " {}"a" {}"" |
|
||||||
|
| {}"" {}"a" {}" == " {}"a" {}"" |
|
||||||
|
| {}"" {}"a" {}" == " {}"a" {}"" |
|
||||||
|
| {}"" {}" a" {}" == " {}" a" {}"" |
|
||||||
|
| {}"" {}"a " {}" == " {}"a " {}"" |
|
||||||
|
--- return ---
|
||||||
|
()
|
||||||
|
--# saved #--
|
||||||
|
{}
|
||||||
12
test/tests/symbol alias constant.ans
Normal file
12
test/tests/symbol alias constant.ans
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
:l = *[1,2,3]
|
||||||
|
|
||||||
|
::&c = l(2)
|
||||||
|
|
||||||
|
| c={c} (2)
|
||||||
|
| l={l} (*[1,2,3])
|
||||||
|
|
||||||
|
::&d = "{l(2)}"
|
||||||
|
|
||||||
|
| d={c} (2)
|
||||||
|
|
||||||
|
d = 5
|
||||||
6
test/tests/text strip trailing space.ans
Normal file
6
test/tests/text strip trailing space.ans
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
|{|a|} == {| a |}
|
||||||
|
|{|a|} == {| a|}
|
||||||
|
|{|a|} == {|a |}
|
||||||
|
|{|a|} == {| a}
|
||||||
|
|{| a|} == {| a |}
|
||||||
|
|{|a |} == {| a |}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue