From: Dale Weiler Date: Tue, 24 Apr 2012 17:09:17 +0000 (-0400) Subject: test/ -> data/ X-Git-Tag: 0.1-rc1~637 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6d0b925fbb3f907771f71f3b45303a65698d38f0;p=xonotic%2Fgmqcc.git test/ -> data/ --- diff --git a/data/constant.qc b/data/constant.qc new file mode 100644 index 0000000..61c85e1 --- /dev/null +++ b/data/constant.qc @@ -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 index 0000000..b1e0568 --- /dev/null +++ b/data/include.qc @@ -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 index 0000000..a75e2d3 --- /dev/null +++ b/data/include2.qc @@ -0,0 +1 @@ +float foo; diff --git a/data/parth.qc b/data/parth.qc new file mode 100644 index 0000000..396f25b --- /dev/null +++ b/data/parth.qc @@ -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 index 0000000..5c5134a --- /dev/null +++ b/data/test.qs @@ -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 index 0000000..f60bf77 --- /dev/null +++ b/data/typedef.qc @@ -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 index 0000000..814ce11 --- /dev/null +++ b/data/types.qc @@ -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 index 0000000..6fe0418 --- /dev/null +++ b/data/vector.qc @@ -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 index b1e0568..0000000 --- a/test/include.qc +++ /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 index 396f25b..0000000 --- a/test/parth.qc +++ /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 index f60bf77..0000000 --- a/test/typedef.qc +++ /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 index 814ce11..0000000 --- a/test/types.qc +++ /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 index 6fe0418..0000000 --- a/test/vector.qc +++ /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. - */