diff options
| author | Li Jin <dragon-fly@qq.com> | 2025-12-04 02:57:43 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2025-12-04 02:57:43 +0800 |
| commit | ec26010fd100bb014584653e0e1370dba816fd1f (patch) | |
| tree | 913b654492370bed305c0e40923643b823a31aa2 /spec | |
| parent | 1fea444b1ae1157a98ac187f58952080a7a63b6e (diff) | |
| download | yuescript-ec26010fd100bb014584653e0e1370dba816fd1f.tar.gz yuescript-ec26010fd100bb014584653e0e1370dba816fd1f.tar.bz2 yuescript-ec26010fd100bb014584653e0e1370dba816fd1f.zip | |
Updated reserved comments function.v0.30.1
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/inputs/test/format_spec.yue | 2 | ||||
| -rw-r--r-- | spec/outputs/test/format_spec.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/inputs/test/format_spec.yue b/spec/inputs/test/format_spec.yue index cbd9d22..3ad2c7f 100644 --- a/spec/inputs/test/format_spec.yue +++ b/spec/inputs/test/format_spec.yue | |||
| @@ -119,7 +119,7 @@ for file in *files | |||
| 119 | original_ast = yue.to_ast code | 119 | original_ast = yue.to_ast code |
| 120 | assert.is_not_nil original_ast | 120 | assert.is_not_nil original_ast |
| 121 | rewriteLineCol original_ast | 121 | rewriteLineCol original_ast |
| 122 | formated = yue.format code | 122 | formated = yue.format code, 0, false |
| 123 | ast = yue.to_ast formated | 123 | ast = yue.to_ast formated |
| 124 | assert.is_not_nil ast | 124 | assert.is_not_nil ast |
| 125 | rewriteLineCol ast | 125 | rewriteLineCol ast |
diff --git a/spec/outputs/test/format_spec.lua b/spec/outputs/test/format_spec.lua index ed0fbee..7aa85cd 100644 --- a/spec/outputs/test/format_spec.lua +++ b/spec/outputs/test/format_spec.lua | |||
| @@ -122,7 +122,7 @@ return describe("format", function() | |||
| 122 | local original_ast = yue.to_ast(code) | 122 | local original_ast = yue.to_ast(code) |
| 123 | assert.is_not_nil(original_ast) | 123 | assert.is_not_nil(original_ast) |
| 124 | rewriteLineCol(original_ast) | 124 | rewriteLineCol(original_ast) |
| 125 | local formated = yue.format(code) | 125 | local formated = yue.format(code, 0, false) |
| 126 | local ast = yue.to_ast(formated) | 126 | local ast = yue.to_ast(formated) |
| 127 | assert.is_not_nil(ast) | 127 | assert.is_not_nil(ast) |
| 128 | rewriteLineCol(ast) | 128 | rewriteLineCol(ast) |
