0
0

add some more tests

This commit is contained in:
DrMaxNix 2022-09-01 19:02:38 +02:00
parent 95c8b92af2
commit e3b3b1a2d2
3 changed files with 35 additions and 0 deletions

12
test/comments.jce Normal file
View File

@ -0,0 +1,12 @@
mov $1 42 # comment
mov $1 42 // comment
mov $1 42 ; comment
# block comments
/*
Block comment
*/
/* Also a block comment */
mov /* Inline block comment */ $1 42

11
test/integer-prefixes.jce Normal file
View File

@ -0,0 +1,11 @@
mov $dec 42
echo $dec "\n"
mov $hex 0x2A
echo $hex "\n"
mov $oct 0o52
echo $oct "\n"
mov $bin 0b101010
echo $bin "\n"

12
test/strings.jce Normal file
View File

@ -0,0 +1,12 @@
echo "Here comes a quote: \"Lorem ipsum\". This had to be escaped!\n"
echo "Here comes another quote: 'Lorem ipsum'. This didn't require escaping!\n"
echo "multiple" "strings" "to" "echo" "\n"
echo "Escape sequences work: \u2764\ufe0f"
echo 'Escape sequences are printed as-is: \u2764\ufe0f'
echo "\t" "indent x1"
echo "\t\t" "indent x2"
echo "\t" "\t" "indent x2"
echo "indent x0"