diff options
| author | Saikari <[email protected]> | 2026-02-02 10:28:45 +0300 |
|---|---|---|
| committer | Saikari <[email protected]> | 2026-02-02 10:28:45 +0300 |
| commit | d1653c5b32f4efa7fec6ab40cb93eb14b0014c38 (patch) | |
| tree | 0f9edaac965debf5f3b97fa22216b5e74982635e /tests/modules/stdin/test.lua | |
| parent | f851d28b49caa6d19e4edc1df39b74222bda6946 (diff) | |
refactor: enhance stdin script handling by improving string trimming logic
Diffstat (limited to 'tests/modules/stdin/test.lua')
| -rw-r--r-- | tests/modules/stdin/test.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/modules/stdin/test.lua b/tests/modules/stdin/test.lua index 6b1b4026b..b0c908c3c 100644 --- a/tests/modules/stdin/test.lua +++ b/tests/modules/stdin/test.lua @@ -113,8 +113,13 @@ function main(t) "2" ) test_shell( + "pwsh_main", + string.format('%s -c "echo \\"function main() print(\'in_pwsh_main\') end\\" | %s"', pwsh, run_stdin), + "in_pwsh_main" + ) + test_shell( "pwsh_multi", - string.format("%s -c \"echo \\\"print('pline1')\\nprint('pline2')\\\" | %s l --stdin\"", pwsh, xmake), + string.format('%s -c "echo \\"print(\'pline1\')\\" \\"print(\'pline2\')\\" | %s"', pwsh, run_stdin), "pline1[\r\n]+pline2" ) else |
