]> Nishi Git Mirror - gwion.git/commitdiff
:art: scan1 coverage
authorfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 8 Oct 2019 10:37:54 +0000 (12:37 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 8 Oct 2019 10:37:54 +0000 (12:37 +0200)
tests/error/dot_single.gw [new file with mode: 0644]
tests/error/nonnull_class_extend.gw [new file with mode: 0644]
tests/error/not_global.gw [new file with mode: 0644]
tests/internal_op/dtor_arg.gw [new file with mode: 0644]
tests/internal_op/dtor_not_void.gw [new file with mode: 0644]
tests/internal_op/dtor_outside_class.gw [moved from tests/error/dtor_outside_class.gw with 100% similarity]
tests/internal_op/internal_not_int.gw [new file with mode: 0644]
tests/match/internal_multi.gw [new file with mode: 0644]
tests/match/match_where.gw [new file with mode: 0644]

diff --git a/tests/error/dot_single.gw b/tests/error/dot_single.gw
new file mode 100644 (file)
index 0000000..209b8e8
--- /dev/null
@@ -0,0 +1,2 @@
+#! [contains] can't use multiple expression
+(me, 1).id();
diff --git a/tests/error/nonnull_class_extend.gw b/tests/error/nonnull_class_extend.gw
new file mode 100644 (file)
index 0000000..ebc0872
--- /dev/null
@@ -0,0 +1,4 @@
+#! [contains] can't use nonnull type in class extend
+class C extends Object! {
+
+}
diff --git a/tests/error/not_global.gw b/tests/error/not_global.gw
new file mode 100644 (file)
index 0000000..e5ac6bb
--- /dev/null
@@ -0,0 +1,6 @@
+#! [contains] is not global
+class C {
+
+}
+
+global C c;
diff --git a/tests/internal_op/dtor_arg.gw b/tests/internal_op/dtor_arg.gw
new file mode 100644 (file)
index 0000000..2f2d781
--- /dev/null
@@ -0,0 +1,4 @@
+#! [contains] must not have args
+class C {
+  operator @dtor void(int i) {}
+}
diff --git a/tests/internal_op/dtor_not_void.gw b/tests/internal_op/dtor_not_void.gw
new file mode 100644 (file)
index 0000000..71cac93
--- /dev/null
@@ -0,0 +1,4 @@
+#! [contains] must return
+class C {
+  operator @dtor int() {}
+}
diff --git a/tests/internal_op/internal_not_int.gw b/tests/internal_op/internal_not_int.gw
new file mode 100644 (file)
index 0000000..57bb422
--- /dev/null
@@ -0,0 +1,2 @@
+#! [contains] must return
+operator @access Object (int i) {}
diff --git a/tests/match/internal_multi.gw b/tests/match/internal_multi.gw
new file mode 100644 (file)
index 0000000..cabafc9
--- /dev/null
@@ -0,0 +1,2 @@
+#! [contains] must have one
+operator @access int(Vec3 v, int i) {}
diff --git a/tests/match/match_where.gw b/tests/match/match_where.gw
new file mode 100644 (file)
index 0000000..19803bb
--- /dev/null
@@ -0,0 +1,4 @@
+int i;
+match (i) {
+  case _ : <<< "success" >>>;
+} where int a;