From bd956efd36f8c5fa81646f1942de26c64d3e6139 Mon Sep 17 00:00:00 2001 From: KtorZ Date: Wed, 14 Dec 2022 10:14:58 +0100 Subject: [PATCH] Rework acceptance test 014 to smaller reproducible scenario --- examples/acceptance_tests/014/lib/test.ak | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/examples/acceptance_tests/014/lib/test.ak b/examples/acceptance_tests/014/lib/test.ak index bac75f88..9ca9dd38 100644 --- a/examples/acceptance_tests/014/lib/test.ak +++ b/examples/acceptance_tests/014/lib/test.ak @@ -1,17 +1,7 @@ -pub fn range(from: Int, to: Int) -> List { - if from > to { - [] - } else { - [from, ..range(from + 1, to)] - } -} - -test range_1() { - range(0, 2) == [0, 1, 2] -} - // NOTE: -// Somehow, the left-hand evaluates to: [#02, #01, #00, #32] -test range_2() { - range(0 - 1, 2) == [0 - 1, 0, 1, 2] +// Somehow, the left-hand evaluates to: [#00, #20, #21] +// whereas the right-hand evaluates to: [#21, #20, #00] +// +test foo() { + [0 - 2, 0 - 1, 0] == [-2, -1, 0] }