[Swift-commit] r2161 - in trunk/tests/language: not-working working working-base
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Wed Jul 30 10:54:28 CDT 2008
Author: benc
Date: 2008-07-30 10:54:27 -0500 (Wed, 30 Jul 2008)
New Revision: 2161
Added:
trunk/tests/language/not-working/dataset-type-not-defined.swift
trunk/tests/language/not-working/proc_arg_type_not_defined.swift
trunk/tests/language/not-working/var_type_not_defined.swift
Modified:
trunk/tests/language/working-base/013-foreach-in-proc.xml
trunk/tests/language/working-base/014-mapper.xml
trunk/tests/language/working-base/015-mapper-literal.xml
trunk/tests/language/working-base/016-mapper-noparam.xml
trunk/tests/language/working-base/022-app-procedure.xml
trunk/tests/language/working-base/036-typedef-empty-semi.xml
trunk/tests/language/working/013-foreach-in-proc.swift
trunk/tests/language/working/014-mapper.swift
trunk/tests/language/working/015-mapper-literal.swift
trunk/tests/language/working/016-mapper-noparam.swift
trunk/tests/language/working/022-app-procedure.swift
trunk/tests/language/working/036-typedef-empty-semi.swift
Log:
More checks that types are defined when used.
This commit contributed by Milena Nikolic <nikolicmilena at gmail.com>
Added: trunk/tests/language/not-working/dataset-type-not-defined.swift
===================================================================
--- trunk/tests/language/not-working/dataset-type-not-defined.swift (rev 0)
+++ trunk/tests/language/not-working/dataset-type-not-defined.swift 2008-07-30 15:54:27 UTC (rev 2161)
@@ -0,0 +1 @@
+myfile v<simple_mapper;pattern="*">;
\ No newline at end of file
Added: trunk/tests/language/not-working/proc_arg_type_not_defined.swift
===================================================================
--- trunk/tests/language/not-working/proc_arg_type_not_defined.swift (rev 0)
+++ trunk/tests/language/not-working/proc_arg_type_not_defined.swift 2008-07-30 15:54:27 UTC (rev 2161)
@@ -0,0 +1,2 @@
+foo (file f) {
+}
\ No newline at end of file
Added: trunk/tests/language/not-working/var_type_not_defined.swift
===================================================================
--- trunk/tests/language/not-working/var_type_not_defined.swift (rev 0)
+++ trunk/tests/language/not-working/var_type_not_defined.swift 2008-07-30 15:54:27 UTC (rev 2161)
@@ -0,0 +1 @@
+file f;
\ No newline at end of file
Modified: trunk/tests/language/working/013-foreach-in-proc.swift
===================================================================
--- trunk/tests/language/working/013-foreach-in-proc.swift 2008-07-30 13:46:33 UTC (rev 2160)
+++ trunk/tests/language/working/013-foreach-in-proc.swift 2008-07-30 15:54:27 UTC (rev 2161)
@@ -1,3 +1,4 @@
+type file;
(file f) echo (string s) {
app {
Modified: trunk/tests/language/working/014-mapper.swift
===================================================================
--- trunk/tests/language/working/014-mapper.swift 2008-07-30 13:46:33 UTC (rev 2160)
+++ trunk/tests/language/working/014-mapper.swift 2008-07-30 15:54:27 UTC (rev 2161)
@@ -1 +1,2 @@
+type myfile;
myfile v<simple_mapper;pattern="*">;
Modified: trunk/tests/language/working/015-mapper-literal.swift
===================================================================
--- trunk/tests/language/working/015-mapper-literal.swift 2008-07-30 13:46:33 UTC (rev 2160)
+++ trunk/tests/language/working/015-mapper-literal.swift 2008-07-30 15:54:27 UTC (rev 2161)
@@ -1 +1,2 @@
+type myfile;
myfile v<"literalfilename.txt">;
Modified: trunk/tests/language/working/016-mapper-noparam.swift
===================================================================
--- trunk/tests/language/working/016-mapper-noparam.swift 2008-07-30 13:46:33 UTC (rev 2160)
+++ trunk/tests/language/working/016-mapper-noparam.swift 2008-07-30 15:54:27 UTC (rev 2161)
@@ -1 +1,2 @@
+type myfile;
myfile v<simple_mapper;>;
Modified: trunk/tests/language/working/022-app-procedure.swift
===================================================================
--- trunk/tests/language/working/022-app-procedure.swift 2008-07-30 13:46:33 UTC (rev 2160)
+++ trunk/tests/language/working/022-app-procedure.swift 2008-07-30 15:54:27 UTC (rev 2161)
@@ -1,3 +1,5 @@
+type file;
+
(file f) generate (float p1) {
app {
generate "-aTOP -T4" "-p" p1 "-o" @f;
Modified: trunk/tests/language/working/036-typedef-empty-semi.swift
===================================================================
--- trunk/tests/language/working/036-typedef-empty-semi.swift 2008-07-30 13:46:33 UTC (rev 2160)
+++ trunk/tests/language/working/036-typedef-empty-semi.swift 2008-07-30 15:54:27 UTC (rev 2161)
@@ -1,2 +1,3 @@
+type bar;
type foo bar;
Modified: trunk/tests/language/working-base/013-foreach-in-proc.xml
===================================================================
--- trunk/tests/language/working-base/013-foreach-in-proc.xml 2008-07-30 13:46:33 UTC (rev 2160)
+++ trunk/tests/language/working-base/013-foreach-in-proc.xml 2008-07-30 15:54:27 UTC (rev 2161)
@@ -1,6 +1,14 @@
<program xmlns="http://ci.uchicago.edu/swift/2007/07/swiftscript"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <types>
+ <type>
+ <typename>file</typename>
+ <typealias>string</typealias>
+ <typestructure></typestructure>
+ </type>
+ </types>
<procedure name="echo">
<output
@@ -29,9 +37,9 @@
name="sa" type="string[]"
xsi:nil="true" />
- <foreach var="s" indexVar="i" src="line 10">
+ <foreach var="s" indexVar="i" src="line 11">
<in><variableReference>sa</variableReference></in>
- <body><call proc="echo" src="line 11">
+ <body><call proc="echo" src="line 12">
<output><arraySubscript>
<variableReference>fa</variableReference>
<variableReference>i</variableReference>
Modified: trunk/tests/language/working-base/014-mapper.xml
===================================================================
--- trunk/tests/language/working-base/014-mapper.xml 2008-07-30 13:46:33 UTC (rev 2160)
+++ trunk/tests/language/working-base/014-mapper.xml 2008-07-30 15:54:27 UTC (rev 2161)
@@ -1,6 +1,14 @@
<program xmlns="http://ci.uchicago.edu/swift/2007/07/swiftscript"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <types>
+ <type>
+ <typename>myfile</typename>
+ <typealias>string</typealias>
+ <typestructure></typestructure>
+ </type>
+ </types>
<dataset name="v" type="myfile">
<mapping descriptor="simple_mapper">
<param name="pattern"><stringConstant>*</stringConstant></param>
Modified: trunk/tests/language/working-base/015-mapper-literal.xml
===================================================================
--- trunk/tests/language/working-base/015-mapper-literal.xml 2008-07-30 13:46:33 UTC (rev 2160)
+++ trunk/tests/language/working-base/015-mapper-literal.xml 2008-07-30 15:54:27 UTC (rev 2161)
@@ -1,6 +1,14 @@
<program xmlns="http://ci.uchicago.edu/swift/2007/07/swiftscript"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <types>
+ <type>
+ <typename>myfile</typename>
+ <typealias>string</typealias>
+ <typestructure></typestructure>
+ </type>
+ </types>
<dataset name="v" type="myfile">
<file name="literalfilename.txt"/>
</dataset>
Modified: trunk/tests/language/working-base/016-mapper-noparam.xml
===================================================================
--- trunk/tests/language/working-base/016-mapper-noparam.xml 2008-07-30 13:46:33 UTC (rev 2160)
+++ trunk/tests/language/working-base/016-mapper-noparam.xml 2008-07-30 15:54:27 UTC (rev 2161)
@@ -1,6 +1,14 @@
<program xmlns="http://ci.uchicago.edu/swift/2007/07/swiftscript"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <types>
+ <type>
+ <typename>myfile</typename>
+ <typealias>string</typealias>
+ <typestructure></typestructure>
+ </type>
+ </types>
<dataset name="v" type="myfile">
<mapping descriptor="simple_mapper"/>
</dataset>
Modified: trunk/tests/language/working-base/022-app-procedure.xml
===================================================================
--- trunk/tests/language/working-base/022-app-procedure.xml 2008-07-30 13:46:33 UTC (rev 2160)
+++ trunk/tests/language/working-base/022-app-procedure.xml 2008-07-30 15:54:27 UTC (rev 2161)
@@ -1,6 +1,14 @@
<program xmlns="http://ci.uchicago.edu/swift/2007/07/swiftscript"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
+
+ <types>
+ <type>
+ <typename>file</typename>
+ <typealias>string</typealias>
+ <typestructure></typestructure>
+ </type>
+ </types>
<procedure name="generate">
<output
Modified: trunk/tests/language/working-base/036-typedef-empty-semi.xml
===================================================================
--- trunk/tests/language/working-base/036-typedef-empty-semi.xml 2008-07-30 13:46:33 UTC (rev 2160)
+++ trunk/tests/language/working-base/036-typedef-empty-semi.xml 2008-07-30 15:54:27 UTC (rev 2161)
@@ -3,6 +3,11 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<types>
+ <type>
+ <typename>bar</typename>
+ <typealias>string</typealias>
+ <typestructure></typestructure>
+ </type>
<type>
<typename>foo</typename>
<typealias>bar</typealias>
More information about the Swift-commit
mailing list