mirror of
https://github.com/kanaka/mal.git
synced 2024-09-11 13:55:55 +03:00
Make: remove part of EVAL breaking # and $ step0: no MAL character must break the interpreter (soft) no printable ASCII character either step1: no MAL character must break strings (soft) no printable ASCII character should break strings (soft) no character should break comments step6: redo step1 tests for comments inside read-string, as new problem may occur with line breaks and escape characters of the host language.
67 lines
862 B
Plaintext
67 lines
862 B
Plaintext
;; Testing basic string
|
|
abcABC123
|
|
;=>abcABC123
|
|
|
|
;; Testing string containing spaces
|
|
hello mal world
|
|
;=>hello mal world
|
|
|
|
;; Testing string containing symbols
|
|
[]{}"'* ;:()
|
|
;=>[]{}"'* ;:()
|
|
|
|
|
|
;; Test long string
|
|
hello world abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789 (;:() []{}"'* ;:() []{}"'* ;:() []{}"'*)
|
|
;=>hello world abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789 (;:() []{}"'* ;:() []{}"'* ;:() []{}"'*)
|
|
|
|
;; Non alphanumeric characters
|
|
!
|
|
;=>!
|
|
&
|
|
;=>&
|
|
+
|
|
;=>+
|
|
,
|
|
;=>,
|
|
-
|
|
;=>-
|
|
/
|
|
;=>/
|
|
<
|
|
;=><
|
|
=
|
|
;=>=
|
|
>
|
|
;=>>
|
|
?
|
|
;=>?
|
|
@
|
|
;=>@
|
|
;;; Behaviour of backslash is not specified enough to test anything in step0.
|
|
^
|
|
;=>^
|
|
_
|
|
;=>_
|
|
`
|
|
;=>`
|
|
~
|
|
;=>~
|
|
|
|
;>>> soft=True
|
|
;>>> optional=True
|
|
;; ------- Optional Functionality --------------
|
|
;; ------- (Not needed for self-hosting) -------
|
|
|
|
;; Non alphanumeric characters
|
|
#
|
|
;=>#
|
|
$
|
|
;=>$
|
|
%
|
|
;=>%
|
|
.
|
|
;=>.
|
|
|
|
|
;=>|
|