1
0
mirror of https://github.com/sstephenson/bats.git synced 2026-02-26 09:48:10 +01:00

fix preprocessing tests that have lines beginning with -e

This commit is contained in:
Mislav Marohnić
2013-04-06 14:01:03 +02:00
parent 5030f53ecc
commit 7cec3d6259
3 changed files with 13 additions and 1 deletions

View File

@@ -97,3 +97,9 @@ fixtures bats
[ $status -eq 0 ]
[ "$output" = "4" ]
}
@test "dash-e is not mangled on beginning of line" {
run bats "$FIXTURE_ROOT/intact.bats"
[ $status -eq 0 ]
[ "${lines[1]}" = "ok 1 dash-e on beginning of line" ]
}

6
test/fixtures/bats/intact.bats vendored Normal file
View File

@@ -0,0 +1,6 @@
@test "dash-e on beginning of line" {
run cat - <<INPUT
-e
INPUT
test "$output" = "-e"
}