[Swift-commit] r5889 - branches/release-0.93.1/tests/language-behaviour/arrays

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Thu Aug 2 17:49:31 CDT 2012


Author: hategan
Date: 2012-08-02 17:49:31 -0500 (Thu, 02 Aug 2012)
New Revision: 5889

Added:
   branches/release-0.93.1/tests/language-behaviour/arrays/030-array-length.check.sh
   branches/release-0.93.1/tests/language-behaviour/arrays/030-array-length.swift
Log:
added @length test

Added: branches/release-0.93.1/tests/language-behaviour/arrays/030-array-length.check.sh
===================================================================
--- branches/release-0.93.1/tests/language-behaviour/arrays/030-array-length.check.sh	                        (rev 0)
+++ branches/release-0.93.1/tests/language-behaviour/arrays/030-array-length.check.sh	2012-08-02 22:49:31 UTC (rev 5889)
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -x
+cat 030-array-length.out | grep "SwiftScript trace: 3" || exit 1
+exit 0


Property changes on: branches/release-0.93.1/tests/language-behaviour/arrays/030-array-length.check.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/release-0.93.1/tests/language-behaviour/arrays/030-array-length.swift
===================================================================
--- branches/release-0.93.1/tests/language-behaviour/arrays/030-array-length.swift	                        (rev 0)
+++ branches/release-0.93.1/tests/language-behaviour/arrays/030-array-length.swift	2012-08-02 22:49:31 UTC (rev 5889)
@@ -0,0 +1,3 @@
+int a[] = [1, 2, 3];
+
+trace(@length(a));
\ No newline at end of file




More information about the Swift-commit mailing list