aboutsummaryrefslogtreecommitdiff
path: root/ql/test/parsing/valid
diff options
context:
space:
mode:
Diffstat (limited to 'ql/test/parsing/valid')
-rw-r--r--ql/test/parsing/valid/test001.ql5
-rw-r--r--ql/test/parsing/valid/test002.ql5
-rw-r--r--ql/test/parsing/valid/test003.ql5
-rw-r--r--ql/test/parsing/valid/test004.ql5
-rw-r--r--ql/test/parsing/valid/test005.ql5
-rw-r--r--ql/test/parsing/valid/test006.ql5
-rw-r--r--ql/test/parsing/valid/test007.ql8
-rw-r--r--ql/test/parsing/valid/test008.ql8
-rw-r--r--ql/test/parsing/valid/test009.ql20
-rw-r--r--ql/test/parsing/valid/test010.ql5
-rw-r--r--ql/test/parsing/valid/test011.ql5
-rw-r--r--ql/test/parsing/valid/test012.ql5
12 files changed, 81 insertions, 0 deletions
diff --git a/ql/test/parsing/valid/test001.ql b/ql/test/parsing/valid/test001.ql
new file mode 100644
index 0000000..aecb488
--- /dev/null
+++ b/ql/test/parsing/valid/test001.ql
@@ -0,0 +1,5 @@
+// Form with question type boolean
+form testForm {
+ "Question?"
+ var: boolean
+} \ No newline at end of file
diff --git a/ql/test/parsing/valid/test002.ql b/ql/test/parsing/valid/test002.ql
new file mode 100644
index 0000000..89402fa
--- /dev/null
+++ b/ql/test/parsing/valid/test002.ql
@@ -0,0 +1,5 @@
+// Form with question of type date
+form testForm {
+ "Question?"
+ var: date
+} \ No newline at end of file
diff --git a/ql/test/parsing/valid/test003.ql b/ql/test/parsing/valid/test003.ql
new file mode 100644
index 0000000..8f8f448
--- /dev/null
+++ b/ql/test/parsing/valid/test003.ql
@@ -0,0 +1,5 @@
+// Form with question of type decimal
+form testForm {
+ "Question?"
+ var: decimal
+} \ No newline at end of file
diff --git a/ql/test/parsing/valid/test004.ql b/ql/test/parsing/valid/test004.ql
new file mode 100644
index 0000000..7d4b77b
--- /dev/null
+++ b/ql/test/parsing/valid/test004.ql
@@ -0,0 +1,5 @@
+// Form with question of type integer
+form testForm {
+ "Question?"
+ var: integer
+} \ No newline at end of file
diff --git a/ql/test/parsing/valid/test005.ql b/ql/test/parsing/valid/test005.ql
new file mode 100644
index 0000000..eafc6c1
--- /dev/null
+++ b/ql/test/parsing/valid/test005.ql
@@ -0,0 +1,5 @@
+// Form with question of type money
+form testForm {
+ "Question?"
+ var: money
+} \ No newline at end of file
diff --git a/ql/test/parsing/valid/test006.ql b/ql/test/parsing/valid/test006.ql
new file mode 100644
index 0000000..16efa4d
--- /dev/null
+++ b/ql/test/parsing/valid/test006.ql
@@ -0,0 +1,5 @@
+// Form with question of type string
+form testForm {
+ "Question?"
+ var: string
+} \ No newline at end of file
diff --git a/ql/test/parsing/valid/test007.ql b/ql/test/parsing/valid/test007.ql
new file mode 100644
index 0000000..dd2b47a
--- /dev/null
+++ b/ql/test/parsing/valid/test007.ql
@@ -0,0 +1,8 @@
+// Form with two questions with the same identifier
+form testForm {
+ "Question?"
+ var: boolean
+
+ "Question?"
+ var: boolean
+}
diff --git a/ql/test/parsing/valid/test008.ql b/ql/test/parsing/valid/test008.ql
new file mode 100644
index 0000000..20cb866
--- /dev/null
+++ b/ql/test/parsing/valid/test008.ql
@@ -0,0 +1,8 @@
+// Form with two questions with different identifiers
+form testForm {
+ "Question?"
+ var1: boolean
+
+ "Question?"
+ var2: boolean
+}
diff --git a/ql/test/parsing/valid/test009.ql b/ql/test/parsing/valid/test009.ql
new file mode 100644
index 0000000..a4edfa1
--- /dev/null
+++ b/ql/test/parsing/valid/test009.ql
@@ -0,0 +1,20 @@
+// Form with questions of all supported types
+form testForm {
+ "Question?"
+ var1: boolean
+
+ "Question?"
+ var2: date
+
+ "Question?"
+ var3: decimal
+
+ "Question?"
+ var4: integer
+
+ "Question?"
+ var5: money
+
+ "Question?"
+ var6: string
+}
diff --git a/ql/test/parsing/valid/test010.ql b/ql/test/parsing/valid/test010.ql
new file mode 100644
index 0000000..c1985f8
--- /dev/null
+++ b/ql/test/parsing/valid/test010.ql
@@ -0,0 +1,5 @@
+// Form with computed question
+form testForm {
+ "Question?"
+ var: boolean = True
+} \ No newline at end of file
diff --git a/ql/test/parsing/valid/test011.ql b/ql/test/parsing/valid/test011.ql
new file mode 100644
index 0000000..a59cae6
--- /dev/null
+++ b/ql/test/parsing/valid/test011.ql
@@ -0,0 +1,5 @@
+// Form with computed question
+form testForm {
+ "Question?"
+ var: boolean = False
+} \ No newline at end of file
diff --git a/ql/test/parsing/valid/test012.ql b/ql/test/parsing/valid/test012.ql
new file mode 100644
index 0000000..d745fba
--- /dev/null
+++ b/ql/test/parsing/valid/test012.ql
@@ -0,0 +1,5 @@
+// Form with computed question
+form testForm {
+ "Question?"
+ var: boolean = "ADSADsad"
+} \ No newline at end of file