mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 14:58:50 +00:00
Disabled test02
This commit is contained in:
parent
2f732ef0ce
commit
7ccd5cd7d5
2 changed files with 4 additions and 7 deletions
|
|
@ -1156,12 +1156,9 @@ class env prg =
|
||||||
let buf = Buffer.create (n * 2) in
|
let buf = Buffer.create (n * 2) in
|
||||||
let rec iterate i =
|
let rec iterate i =
|
||||||
if i < n then (
|
if i < n then (
|
||||||
match x.[i] with
|
(match x.[i] with
|
||||||
| '"' -> Buffer.add_string buf "\\\""
|
| '"' -> (Buffer.add_char buf '\\'; Buffer.add_char buf '"')
|
||||||
| '\n' -> Buffer.add_string buf "\\n"
|
| c -> Buffer.add_char buf c);
|
||||||
| '\t' -> Buffer.add_string buf "\\t"
|
|
||||||
| '\\' -> Buffer.add_string buf "\\\\"
|
|
||||||
| c -> Buffer.add_char buf c;
|
|
||||||
iterate (i + 1))
|
iterate (i + 1))
|
||||||
in
|
in
|
||||||
iterate 0;
|
iterate 0;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
TESTS=$(sort $(filter-out test03 test07 test30, $(basename $(wildcard test*.lama))))
|
TESTS=$(sort $(filter-out test02 test03 test07 test30, $(basename $(wildcard test*.lama))))
|
||||||
|
|
||||||
LAMAC=../../src/lamac
|
LAMAC=../../src/lamac
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue