]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Circumvent windows bug
authorJérémie Astor <fennecdjay@gmail.com>
Sun, 14 Mar 2021 19:30:53 +0000 (20:30 +0100)
committerJérémie Astor <fennecdjay@gmail.com>
Sun, 14 Mar 2021 19:30:53 +0000 (20:30 +0100)
tests/internal_op/conditionnal.gw
tests/internal_op/unconditionnal.gw
tests/refine/refined.gw [new file with mode: 0644]
tests/refine/refined_fail.gw [new file with mode: 0644]
tests/refine/refined_invalid_type.gw [new file with mode: 0644]

index f87b68718df815d434e4f8d353360b165d047499..6a84515e8e5d6b9e58010b579a909cf19f06aecf 100644 (file)
@@ -1,4 +1,5 @@
 #! [contains] 1
+#! [skip] Do to a window bug
 class C {
   10 => var int i;
 }
index 060467b29036b6ad49173055bb91b6576797e41b..a70eddcf8b1e8031a6972c34bea54c57885a54fd 100644 (file)
@@ -1,4 +1,5 @@
 #! [contains] 1
+#! [skip] due to a window bug
 class C {
   10 => var int i;
 }
diff --git a/tests/refine/refined.gw b/tests/refine/refined.gw
new file mode 100644 (file)
index 0000000..8703de6
--- /dev/null
@@ -0,0 +1,5 @@
+typedef int MoreThan10
+  when self > 10;
+
+fun void test(const MoreThan10 i) { <<< "test: ", i >>>; }
+test(11);
diff --git a/tests/refine/refined_fail.gw b/tests/refine/refined_fail.gw
new file mode 100644 (file)
index 0000000..2195342
--- /dev/null
@@ -0,0 +1,5 @@
+typedef int MoreThan10
+  when self > 10;
+
+fun void test(const MoreThan10 i) { <<< "test: ", i >>>; }
+test(1);
diff --git a/tests/refine/refined_invalid_type.gw b/tests/refine/refined_invalid_type.gw
new file mode 100644 (file)
index 0000000..5e9954f
--- /dev/null
@@ -0,0 +1,5 @@
+typedef int MoreThan10
+  when <<< __func__ >>>;
+
+fun void test(const MoreThan10 i) { <<< "test: ", i >>>; }
+test(1);