diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-01-29 00:49:41 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-01-29 00:49:41 +0800 |
| commit | 022d4298a7d92912282c62852d76b9b50dce86ad (patch) | |
| tree | eeb6e2508e5ab69be5f5054112c3bcde81f5d94a /spec | |
| parent | dd64edd58fe25ec74ae5958128cf3f74b0692f3b (diff) | |
| download | yuescript-022d4298a7d92912282c62852d76b9b50dce86ad.tar.gz yuescript-022d4298a7d92912282c62852d76b9b50dce86ad.tar.bz2 yuescript-022d4298a7d92912282c62852d76b9b50dce86ad.zip | |
Fixed Windows build.
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/inputs/test/advanced_macro_spec.yue | 2 | ||||
| -rw-r--r-- | spec/outputs/test/advanced_macro_spec.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/inputs/test/advanced_macro_spec.yue b/spec/inputs/test/advanced_macro_spec.yue index d88807f..9b9c4de 100644 --- a/spec/inputs/test/advanced_macro_spec.yue +++ b/spec/inputs/test/advanced_macro_spec.yue | |||
| @@ -70,7 +70,7 @@ describe "advanced macro", -> | |||
| 70 | 70 | ||
| 71 | it "should work with builtin FILE macro", -> | 71 | it "should work with builtin FILE macro", -> |
| 72 | macro file_test = -> | 72 | macro file_test = -> |
| 73 | "$FILE" | 73 | "'#{$FILE}'" |
| 74 | 74 | ||
| 75 | result = $file_test | 75 | result = $file_test |
| 76 | assert.is_true type(result) == "string" | 76 | assert.is_true type(result) == "string" |
diff --git a/spec/outputs/test/advanced_macro_spec.lua b/spec/outputs/test/advanced_macro_spec.lua index 0a46978..12ea559 100644 --- a/spec/outputs/test/advanced_macro_spec.lua +++ b/spec/outputs/test/advanced_macro_spec.lua | |||
| @@ -40,7 +40,7 @@ multiline_var = "test work" | |||
| 40 | return assert.same(result, 10) | 40 | return assert.same(result, 10) |
| 41 | end) | 41 | end) |
| 42 | it("should work with builtin FILE macro", function() | 42 | it("should work with builtin FILE macro", function() |
| 43 | local result = "./spec/inputs/test/advanced_macro_spec.yue" | 43 | local result = '=(macro file_test)' |
| 44 | return assert.is_true(type(result) == "string") | 44 | return assert.is_true(type(result) == "string") |
| 45 | end) | 45 | end) |
| 46 | it("should work with builtin LINE macro", function() | 46 | it("should work with builtin LINE macro", function() |
