From 25314fd2aed81aa5281bc3d93dbcc7919368ebe1 Mon Sep 17 00:00:00 2001 From: Bicker Date: Wed, 22 May 2019 17:45:37 +0200 Subject: Initial commit --- ql/test/parsing/valid/test001.ql | 5 +++++ ql/test/parsing/valid/test002.ql | 5 +++++ ql/test/parsing/valid/test003.ql | 5 +++++ ql/test/parsing/valid/test004.ql | 5 +++++ ql/test/parsing/valid/test005.ql | 5 +++++ ql/test/parsing/valid/test006.ql | 5 +++++ ql/test/parsing/valid/test007.ql | 8 ++++++++ ql/test/parsing/valid/test008.ql | 8 ++++++++ ql/test/parsing/valid/test009.ql | 20 ++++++++++++++++++++ ql/test/parsing/valid/test010.ql | 5 +++++ ql/test/parsing/valid/test011.ql | 5 +++++ ql/test/parsing/valid/test012.ql | 5 +++++ 12 files changed, 81 insertions(+) create mode 100644 ql/test/parsing/valid/test001.ql create mode 100644 ql/test/parsing/valid/test002.ql create mode 100644 ql/test/parsing/valid/test003.ql create mode 100644 ql/test/parsing/valid/test004.ql create mode 100644 ql/test/parsing/valid/test005.ql create mode 100644 ql/test/parsing/valid/test006.ql create mode 100644 ql/test/parsing/valid/test007.ql create mode 100644 ql/test/parsing/valid/test008.ql create mode 100644 ql/test/parsing/valid/test009.ql create mode 100644 ql/test/parsing/valid/test010.ql create mode 100644 ql/test/parsing/valid/test011.ql create mode 100644 ql/test/parsing/valid/test012.ql (limited to 'ql/test/parsing/valid') 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 -- cgit v1.2.3