mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-24 15:48:47 +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 rec iterate i =
|
||||
if i < n then (
|
||||
match x.[i] with
|
||||
| '"' -> Buffer.add_string buf "\\\""
|
||||
| '\n' -> Buffer.add_string buf "\\n"
|
||||
| '\t' -> Buffer.add_string buf "\\t"
|
||||
| '\\' -> Buffer.add_string buf "\\\\"
|
||||
| c -> Buffer.add_char buf c;
|
||||
(match x.[i] with
|
||||
| '"' -> (Buffer.add_char buf '\\'; Buffer.add_char buf '"')
|
||||
| c -> Buffer.add_char buf c);
|
||||
iterate (i + 1))
|
||||
in
|
||||
iterate 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue