diff options
author | Pete Fotheringham <pete.fotheringham@codethink.co.uk> | 2013-11-11 18:14:01 +0000 |
---|---|---|
committer | Pete Fotheringham <pete.fotheringham@codethink.co.uk> | 2013-11-11 18:32:14 +0000 |
commit | c4cbaf65ea8dff900b98b1a7a7f3d71cb0b19c41 (patch) | |
tree | efc64776708049959724c17b9a6e8c8fc22c4bd2 /yarn.tests/two-no-thens.script | |
parent | 62ae5d242c222129b15597cac9710e51bafda56a (diff) | |
download | cmdtest-c4cbaf65ea8dff900b98b1a7a7f3d71cb0b19c41.tar.gz |
Given one invalid yarn and one valid one, check yarn reports the correct one as invalid
Diffstat (limited to 'yarn.tests/two-no-thens.script')
-rwxr-xr-x | yarn.tests/two-no-thens.script | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/yarn.tests/two-no-thens.script b/yarn.tests/two-no-thens.script new file mode 100755 index 0000000..a6a67fd --- /dev/null +++ b/yarn.tests/two-no-thens.script @@ -0,0 +1,23 @@ +#!/bin/sh + +set -eu + + +cat <<EOF > "$DATADIR/1.yarn" + SCENARIO valid scenario + GIVEN statement 1 + THEN statement 2 + + SCENARIO invalid scenario + GIVEN statement 1 + + IMPLEMENTS GIVEN statement (\d) + true + + IMPLEMENTS THEN statement (\d) + true + + +EOF + +./run-yarn "$DATADIR/1.yarn" |