Skip to content

Commit

Permalink
doesn't have \r in windows any more
Browse files Browse the repository at this point in the history
  • Loading branch information
AriehSchneier committed Aug 26, 2024
1 parent 25cc431 commit c452fe9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions syntax/std_deprecated_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
package syntax

import (
"runtime"
"testing"
)

func TestDeprecatedExec(t *testing.T) {
t.Parallel()

lineSep := "\n"
if runtime.GOOS == windows {
lineSep = "\r\n"
}

AssertCodesEvalToSameValue(t, `(
args: ['ls', 'std_deprecated_test.go'],
exitCode: 0,
Expand All @@ -22,7 +16,7 @@ func TestDeprecatedExec(t *testing.T) {
AssertCodesEvalToSameValue(t, `(
args: ['echo'],
exitCode: 0,
stdout: <<'`+lineSep+`'>>,
stdout: <<'\n'>>,
stderr: {},
)`, `//deprecated.exec(['echo'])`)
}
Expand Down

0 comments on commit c452fe9

Please sign in to comment.