From e8b16ce02be8ee6ec0a2958c75bf0a27f6374f1b Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 17 Aug 2019 15:20:26 +0200 Subject: [PATCH] :white_check_mark: Add tests --- tests/tuple/array_tuple_array.gw | 11 +++++++++++ tests/tuple/tuple_empty.gw | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 tests/tuple/array_tuple_array.gw create mode 100644 tests/tuple/tuple_empty.gw diff --git a/tests/tuple/array_tuple_array.gw b/tests/tuple/array_tuple_array.gw new file mode 100644 index 00000000..8ed2d130 --- /dev/null +++ b/tests/tuple/array_tuple_array.gw @@ -0,0 +1,11 @@ +<([1,2], "Tom") @=> <~int[], string~>Tuple @tup; + +#!<<>>; +#!<<>>; + +<~int[], string~>Tuple stack[3]; +tup @=> stack[2]; +<<< stack[2] >>>; +<<< stack[2][1] >>>; +<<< stack[2][0] >>>; +<<< stack[2][0][1] >>>; diff --git a/tests/tuple/tuple_empty.gw b/tests/tuple/tuple_empty.gw new file mode 100644 index 00000000..9d1e488d --- /dev/null +++ b/tests/tuple/tuple_empty.gw @@ -0,0 +1,2 @@ +Tuple @tup; +tup[1]; -- 2.43.0