[Swift-commit] r4254 - trunk/tests/functions

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Mon Apr 4 09:03:39 CDT 2011


Author: wozniak
Date: 2011-04-04 09:03:39 -0500 (Mon, 04 Apr 2011)
New Revision: 4254

Added:
   trunk/tests/functions/106-assert-iter.check.sh
   trunk/tests/functions/106-assert-iter.swift
Log:
Try to crash inside an iterate- does not work


Added: trunk/tests/functions/106-assert-iter.check.sh
===================================================================
--- trunk/tests/functions/106-assert-iter.check.sh	                        (rev 0)
+++ trunk/tests/functions/106-assert-iter.check.sh	2011-04-04 14:03:39 UTC (rev 4254)
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+set -x
+
+grep I_IS_4 stdout.txt || exit 1
+
+LINES=$( grep -c "i:" stdout.txt )
+[[ ${LINES} == 5 ]] || exit 1
+
+exit 0


Property changes on: trunk/tests/functions/106-assert-iter.check.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/tests/functions/106-assert-iter.swift
===================================================================
--- trunk/tests/functions/106-assert-iter.swift	                        (rev 0)
+++ trunk/tests/functions/106-assert-iter.swift	2011-04-04 14:03:39 UTC (rev 4254)
@@ -0,0 +1,10 @@
+
+// Swift does not support this yet
+
+// THIS-SCRIPT-SHOULD-FAIL
+
+iterate i
+{
+  tracef("i: %i\n", i);
+  assert(i != 4, "I_IS_4");
+} until (false);




More information about the Swift-commit mailing list