]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
test/ -> data/
authorDale Weiler <killfieldengine@gmail.com>
Tue, 24 Apr 2012 17:09:17 +0000 (13:09 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Tue, 24 Apr 2012 17:09:17 +0000 (13:09 -0400)
13 files changed:
data/constant.qc [new file with mode: 0644]
data/include.qc [new file with mode: 0644]
data/include2.qc [new file with mode: 0644]
data/parth.qc [new file with mode: 0644]
data/test.qs [new file with mode: 0644]
data/typedef.qc [new file with mode: 0644]
data/types.qc [new file with mode: 0644]
data/vector.qc [new file with mode: 0644]
test/include.qc [deleted file]
test/parth.qc [deleted file]
test/typedef.qc [deleted file]
test/types.qc [deleted file]
test/vector.qc [deleted file]

diff --git a/data/constant.qc b/data/constant.qc
new file mode 100644 (file)
index 0000000..61c85e1
--- /dev/null
@@ -0,0 +1,4 @@
+float  constant_1 = 1;
+string constant_2 = "hello world";
+vector constant_3 = { -0, +0, 0 };
+entity constant_4 = 0
diff --git a/data/include.qc b/data/include.qc
new file mode 100644 (file)
index 0000000..b1e0568
--- /dev/null
@@ -0,0 +1,5 @@
+/*
+ * all of these includes should work.  No matter what the spacing
+ * is,  we rely on it.
+ */
+#include "test/include2.qc"
diff --git a/data/include2.qc b/data/include2.qc
new file mode 100644 (file)
index 0000000..a75e2d3
--- /dev/null
@@ -0,0 +1 @@
+float foo;
diff --git a/data/parth.qc b/data/parth.qc
new file mode 100644 (file)
index 0000000..396f25b
--- /dev/null
@@ -0,0 +1,10 @@
+void test_parth() {
+       if (1) { }
+       if (2) { }
+       if (3) { }
+       if (4) { }
+       if (5) { }
+       if (6) { }
+       if (7) { }
+       if (8) { }
+}
diff --git a/data/test.qs b/data/test.qs
new file mode 100644 (file)
index 0000000..5c5134a
--- /dev/null
@@ -0,0 +1,8 @@
+FLOAT: f 1;
+FLOAT: f 2;
+FLOAT: f 3;
+STRING: bar "hello world"
+
+FUNCTION: foo
+       ADD_F 200.4f, 300.3, OFS_RETURN
+       DONE
diff --git a/data/typedef.qc b/data/typedef.qc
new file mode 100644 (file)
index 0000000..f60bf77
--- /dev/null
@@ -0,0 +1,11 @@
+typedef float  my_float;
+typedef vector my_vector;
+typedef string my_string;
+typedef entity my_entity;
+typedef void   my_void;
+
+my_float  type_float;
+my_vector type_vector;
+my_string type_string;
+my_entity type_entity;
+my_void   type_void;
diff --git a/data/types.qc b/data/types.qc
new file mode 100644 (file)
index 0000000..814ce11
--- /dev/null
@@ -0,0 +1,5 @@
+float  typef;
+vector typev;
+string types;
+entity typee;
+void   typev;
diff --git a/data/vector.qc b/data/vector.qc
new file mode 100644 (file)
index 0000000..6fe0418
--- /dev/null
@@ -0,0 +1,10 @@
+vector vec1 = {-0 +0 0 };
+vector vec2 = {.0 .0 .0 };
+vector vec3 = {-.0 +.0 +0.1 };
+vector vec4 = {1.1 2.2 3.3 };
+vector vec5 = {2. 3. 4. };
+vector vec6 = {-2. +3. -4. };
+/*
+ * These are just comments:  Ideally there is still some broken things
+ * for the vector yet.  which sort of sucks.
+ */
diff --git a/test/include.qc b/test/include.qc
deleted file mode 100644 (file)
index b1e0568..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-/*
- * all of these includes should work.  No matter what the spacing
- * is,  we rely on it.
- */
-#include "test/include2.qc"
diff --git a/test/parth.qc b/test/parth.qc
deleted file mode 100644 (file)
index 396f25b..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-void test_parth() {
-       if (1) { }
-       if (2) { }
-       if (3) { }
-       if (4) { }
-       if (5) { }
-       if (6) { }
-       if (7) { }
-       if (8) { }
-}
diff --git a/test/typedef.qc b/test/typedef.qc
deleted file mode 100644 (file)
index f60bf77..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-typedef float  my_float;
-typedef vector my_vector;
-typedef string my_string;
-typedef entity my_entity;
-typedef void   my_void;
-
-my_float  type_float;
-my_vector type_vector;
-my_string type_string;
-my_entity type_entity;
-my_void   type_void;
diff --git a/test/types.qc b/test/types.qc
deleted file mode 100644 (file)
index 814ce11..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-float  typef;
-vector typev;
-string types;
-entity typee;
-void   typev;
diff --git a/test/vector.qc b/test/vector.qc
deleted file mode 100644 (file)
index 6fe0418..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-vector vec1 = {-0 +0 0 };
-vector vec2 = {.0 .0 .0 };
-vector vec3 = {-.0 +.0 +0.1 };
-vector vec4 = {1.1 2.2 3.3 };
-vector vec5 = {2. 3. 4. };
-vector vec6 = {-2. +3. -4. };
-/*
- * These are just comments:  Ideally there is still some broken things
- * for the vector yet.  which sort of sucks.
- */