From ba5af12ef073791914c94d06592ab40eb632ad4b Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 4 Jul 2013 08:18:05 +0100 Subject: Add test case for FINALLY --- yarn.tests/finally.script | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 yarn.tests/finally.script (limited to 'yarn.tests') diff --git a/yarn.tests/finally.script b/yarn.tests/finally.script new file mode 100755 index 0000000..2d383a0 --- /dev/null +++ b/yarn.tests/finally.script @@ -0,0 +1,26 @@ +#!/bin/sh + +set -eu + +cat < "$DATADIR/finally.yarn" + SCENARIO finally + GIVEN nothing + WHEN nothing + THEN nothing + FINALLY yeehaa + + IMPLEMENTS GIVEN nothing + true + + IMPLEMENTS WHEN nothing + true + + IMPLEMENTS THEN nothing + true + + IMPLEMENTS FINALLY yeehaa + touch "$DATADIR/finally.has.run" +EOF + +./yarn -q "$DATADIR/finally.yarn" +test -e "$DATADIR/finally.has.run" -- cgit v1.2.1