From b5f8502864af224817c5cb775da83661de0d1a0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 14 Mar 2021 20:30:53 +0100 Subject: [PATCH] :wrench: Circumvent windows bug --- tests/internal_op/conditionnal.gw | 1 + tests/internal_op/unconditionnal.gw | 1 + tests/refine/refined.gw | 5 +++++ tests/refine/refined_fail.gw | 5 +++++ tests/refine/refined_invalid_type.gw | 5 +++++ 5 files changed, 17 insertions(+) create mode 100644 tests/refine/refined.gw create mode 100644 tests/refine/refined_fail.gw create mode 100644 tests/refine/refined_invalid_type.gw diff --git a/tests/internal_op/conditionnal.gw b/tests/internal_op/conditionnal.gw index f87b6871..6a84515e 100644 --- a/tests/internal_op/conditionnal.gw +++ b/tests/internal_op/conditionnal.gw @@ -1,4 +1,5 @@ #! [contains] 1 +#! [skip] Do to a window bug class C { 10 => var int i; } diff --git a/tests/internal_op/unconditionnal.gw b/tests/internal_op/unconditionnal.gw index 060467b2..a70eddcf 100644 --- a/tests/internal_op/unconditionnal.gw +++ b/tests/internal_op/unconditionnal.gw @@ -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 index 00000000..8703de6c --- /dev/null +++ b/tests/refine/refined.gw @@ -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 index 00000000..21953427 --- /dev/null +++ b/tests/refine/refined_fail.gw @@ -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 index 00000000..5e9954f3 --- /dev/null +++ b/tests/refine/refined_invalid_type.gw @@ -0,0 +1,5 @@ +typedef int MoreThan10 + when <<< __func__ >>>; + +fun void test(const MoreThan10 i) { <<< "test: ", i >>>; } +test(1); -- 2.43.0