From 65b32e909adb450a7807f8df1fdcd92e4fbb4386 Mon Sep 17 00:00:00 2001 From: Torben Ewert Date: Sat, 2 May 2026 12:05:15 +0200 Subject: [PATCH] chore: update tests --- test/array/run.t | 56 +++++++++--------- test/char/run.t | 36 ++++++------ test/component/run.t | 24 ++++---- test/context/run.t | 12 ++-- test/function/run.t | 36 ++++++------ test/loop/run.t | 94 +++++++++++++++--------------- test/mutation/run.t | 10 ++-- test/operators/run.t | 126 ++++++++++++++++++++--------------------- test/parse_error/run.t | 4 +- test/portal/run.t | 14 ++--- test/record/run.t | 14 ++--- test/slot/run.t | 28 ++++----- test/store/run.t | 6 +- test/template/run.t | 40 ++++++------- test/test/run.t | 8 +-- 15 files changed, 254 insertions(+), 254 deletions(-) diff --git a/test/array/run.t b/test/array/run.t index c5af539..df9c83a 100644 --- a/test/array/run.t +++ b/test/array/run.t @@ -1,44 +1,44 @@ $ NO_COLOR="1" print . C
- 0123 + 0123 - 01234 + 01234 - 0123456 + 0123456 - 01234567 - - 0123456789 + 01234567 - 123 - 138 + 0123456789 - 8 - 8 + 123 + 138 - 02468 + 8 + 8 - 13579 + 02468 - 02468 - - FOUND + 13579 - NOT FOUND + 02468 - true - true - false - false - 21 + FOUND - 01234 + NOT FOUND - 34567 + true + true + false + false + 21 -
1,2,3
4,5,6
7,8,9
10
+ 01234 - 12334567 - - 12347 -
+ 34567 + +
1,2,3
4,5,6
7,8,9
10
+ + 12334567 + + 12347 + diff --git a/test/char/run.t b/test/char/run.t index dd8c897..246169f 100644 --- a/test/char/run.t +++ b/test/char/run.t @@ -1,24 +1,24 @@ $ NO_COLOR="1" print . C
- String.uppercase_ascii("abcàäöüß"): ABCàäöüß - String.lowercase_ascii("ABCÁÄÖÜß"): abcÁÄÖÜß - String.capitalize_ascii("abc"): Abc - String.capitalize_ascii("äöü"): äöü + String.uppercase_ascii("abcàäöüß"): ABCàäöüß + String.lowercase_ascii("ABCÁÄÖÜß"): abcÁÄÖÜß + String.capitalize_ascii("abc"): Abc + String.capitalize_ascii("äöü"): äöü - char: c - char + 1: d - char < 32: false - char > 32: true + char: c + char + 1: d + char < 32: false + char > 32: true - ! - ! - \ - + ! + ! + \ - ' - - © - ǿ - 😡 -
+ + ' + + © + ǿ + 😡 + diff --git a/test/component/run.t b/test/component/run.t index 3f3b5b9..f1750cb 100644 --- a/test/component/run.t +++ b/test/component/run.t @@ -1,19 +1,19 @@ $ NO_COLOR="1" print . Component
- -

+ +

Hello, Headline Secondary!

-
-
    -
  • 0
  • 1
  • 2
  • 3
  • -
    -
  • 0
  • 1
  • 2
  • 3
  • -
    -
  • 0
  • 1
  • 2
  • 3
  • -
-
-
+
+ +
+ $ NO_COLOR="1" print . Foo diff --git a/test/context/run.t b/test/context/run.t index ca651f1..6066aad 100644 --- a/test/context/run.t +++ b/test/context/run.t @@ -1,10 +1,10 @@ $ NO_COLOR="1" print . Component
-

+

Hello, Headline Secondary!

-
-

Faucibus mus velit ut iaculis cubilia taciti conubia, ad magna sem mattis tincidunt eleifend, egestas eget neque curae molestie donec. Magna ipsum netus euismod vitae justo dictum adipiscing lobortis, posuere tortor penatibus tempus laoreet habitant orci, turpis blandit nullam ornare fames nostra sed.

-

-
-
+
+

Faucibus mus velit ut iaculis cubilia taciti conubia, ad magna sem mattis tincidunt eleifend, egestas eget neque curae molestie donec. Magna ipsum netus euismod vitae justo dictum adipiscing lobortis, posuere tortor penatibus tempus laoreet habitant orci, turpis blandit nullam ornare fames nostra sed.

+

+
+ diff --git a/test/function/run.t b/test/function/run.t index 213ece2..42082e0 100644 --- a/test/function/run.t +++ b/test/function/run.t @@ -1,23 +1,23 @@ $ NO_COLOR="1" print . Component
- max(1, 5) = 5 - min(1, 5) = 1 - add_curry(1)(5) = 6 - Math.fibonacci(9) = 34 - Math.factorial(5) = 120 - is_even(10) = true - is_odd(10) = false + max(1, 5) = 5 + min(1, 5) = 1 + add_curry(1)(5) = 6 + Math.fibonacci(9) = 34 + Math.factorial(5) = 120 + is_even(10) = true + is_odd(10) = false - 1 |> max(5) |> Math.factorial = 120 - 1 |> add_curry(5)() = 6 - 5 |> Math.factorial = 120 + 1 |> max(5) |> Math.factorial = 120 + 1 |> add_curry(5)() = 6 + 5 |> Math.factorial = 120 - Math.Constants.pi = 3.1415 - C.pi = 3.1415 + Math.Constants.pi = 3.1415 + C.pi = 3.1415 - Map: - 14916 - - Map Pipe: - 14916 -
+ Map: + 14916 + + Map Pipe: + 14916 + diff --git a/test/loop/run.t b/test/loop/run.t index 43d188f..e0d153e 100644 --- a/test/loop/run.t +++ b/test/loop/run.t @@ -1,78 +1,78 @@ $ NO_COLOR="1" print . Component
-

EXCLUSIVE RANGES

+

EXCLUSIVE RANGES

- 0..10 -
0
1
2
3
4
5
6
7
8
9
+ 0..10 +
0
1
2
3
4
5
6
7
8
9
- 0..0 - + 0..0 - 0..1 -
0
- 0..-1 - + 0..1 +
0
- -10..10 -
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
0
1
2
3
4
5
6
7
8
9
+ 0..-1 - 10..0 - - 0..10 reverse -
9
8
7
6
5
4
3
2
1
0
+ -10..10 +
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
0
1
2
3
4
5
6
7
8
9
+ 10..0 -

INCLUSIVE RANGES

- 0...10 -
0
1
2
3
4
5
6
7
8
9
10
+ 0..10 reverse +
9
8
7
6
5
4
3
2
1
0
- 0...0 -
0
- 0...1 -
0
1
+

INCLUSIVE RANGES

- 0...-1 - + 0...10 +
0
1
2
3
4
5
6
7
8
9
10
- -10...10 -
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
0
1
2
3
4
5
6
7
8
9
10
+ 0...0 +
0
- 10...0 - + 0...1 +
0
1
- 0...10 reverse -
10
9
8
7
6
5
4
3
2
1
0
+ 0...-1 -

ITERABLES

+ -10...10 +
-10
-9
-8
-7
-6
-5
-4
-3
-2
-1
0
1
2
3
4
5
6
7
8
9
10
- array -
0
1
2
3
4
5
6
7
8
9
+ 10...0 - array reverse -
9
8
7
6
5
4
3
2
1
0
- string -
S
t
r
i
n
g
!
+ 0...10 reverse +
10
9
8
7
6
5
4
3
2
1
0
- string reverse -
!
g
è
n
i
ä
r
t
S
- string array -
0 one
1 two
2 three
3 !
+

ITERABLES

- null value - + array +
0
1
2
3
4
5
6
7
8
9
+ array reverse +
9
8
7
6
5
4
3
2
1
0
-

BREAK / CONTINUE

+ string +
S
t
r
i
n
g
!
- Strng! + string reverse +
!
g
è
n
i
ä
r
t
S
- 012 + string array +
0 one
1 two
2 three
3 !
-
+ null value + + + +

BREAK / CONTINUE

+ + Strng! + + 012 + + diff --git a/test/mutation/run.t b/test/mutation/run.t index 22aa3cb..374ea51 100644 --- a/test/mutation/run.t +++ b/test/mutation/run.t @@ -1,7 +1,7 @@ $ NO_COLOR="1" print . Component
- a: mutated - b: mutated - print_c(): mutated - print_d(): initial -
+ a: mutated + b: mutated + print_c(): mutated + print_d(): initial + diff --git a/test/operators/run.t b/test/operators/run.t index ebb2213..d572c1e 100644 --- a/test/operators/run.t +++ b/test/operators/run.t @@ -1,77 +1,77 @@ $ NO_COLOR="1" print . Component
- ![1] = false - ![] = true - !!"" = false - !true = false - -1 = -1 - -2.5 = -2.5 + ![1] = false + ![] = true + !!"" = false + !true = false + -1 = -1 + -2.5 = -2.5 - true == true = true - true != true = false - true && true = true - true && false = false - true || false = true - false || false = false - true || true && false = true - false && true || true = true + true == true = true + true != true = false + true && true = true + true && false = false + true || false = true + false || false = false + true || true && false = true + false && true || true = true - 1 == 1 = true - 1 == 2 = false - 1 > 2 = false - 1 < 2 = true - 1 <= 1 = true - 2 <= 1 = false - 1 >= 1 = true + 1 == 1 = true + 1 == 2 = false + 1 > 2 = false + 1 < 2 = true + 1 <= 1 = true + 2 <= 1 = false + 1 >= 1 = true - [1] == [1] = true - [1] == [2] = false - [1, 2] >= [5] = true - [1] >= [1,2,3] = false + [1] == [1] = true + [1] == [2] = false + [1, 2] >= [5] = true + [1] >= [1,2,3] = false - 1 + 1 = 2 - 1.3 + 1.5 = 2.8 - 1 + 1.2 = 2.2 - 2.73 + 3 = 5.73 + 1 + 1 = 2 + 1.3 + 1.5 = 2.8 + 1 + 1.2 = 2.2 + 2.73 + 3 = 5.73 - 1 - 1 = 0 - 1.3 - 1.5 = -0.2 - 1 - 1.2 = -0.2 - 2.73 - 3 = -0.27 + 1 - 1 = 0 + 1.3 - 1.5 = -0.2 + 1 - 1.2 = -0.2 + 2.73 - 3 = -0.27 - 1 * 1 = 1 - 1.3 * 1.5 = 1.95 - 1 * 1.2 = 1.2 - 2.73 * 3 = 8.19 - 10 * -1 = -10 + 1 * 1 = 1 + 1.3 * 1.5 = 1.95 + 1 * 1.2 = 1.2 + 2.73 * 3 = 8.19 + 10 * -1 = -10 - 1 / 1 = 1 - 1.3 / 1.5 = 0.866666666667 - 1 / 1.2 = 0.833333333333 - 2.73 / 3 = 0.91 + 1 / 1 = 1 + 1.3 / 1.5 = 0.866666666667 + 1 / 1.2 = 0.833333333333 + 2.73 / 3 = 0.91 - 3 ** 1 = 3 - 3 ** 2 = 9 - 3 ** 3 = 27 - 2.73 ** 3 = 20.346417 + 3 ** 1 = 3 + 3 ** 2 = 9 + 3 ** 3 = 27 + 2.73 ** 3 = 20.346417 - "a" ++ "b" = ab - "a" ++ "b" ++ "c" = abc + "a" ++ "b" = ab + "a" ++ "b" ++ "c" = abc - 5 % 2 = 1 - 5 % 3 = 2 + 5 % 2 = 1 + 5 % 3 = 2 - 3 - 2 + 4 * -5 = -19 - 3 - -5 + 4 * 2 = 16 - -5 * 3 + 4 * 2 = -7 - 2 + 3 * 5 = 17 - 5 * 3 + 2 = 17 - 2 ** 3 ** 2 = 512 - 2 ** 3 * 5 = 40 - 3 * 5 ** 2 = 75 - 5 * 3 + 2 / 6 + 4 * 8 ** 10 = 4294967311.33 - 5 * 3 + 2 / (6 + 4) * 8 ** 10 = 214748379.8 - 5 * 3 + 2 / (6 + 4 * 8) ** 10 = 15 - (5 * 3) + 2 / 6 + 4 * 8 ** 10 = 4294967311.33 -
+ 3 - 2 + 4 * -5 = -19 + 3 - -5 + 4 * 2 = 16 + -5 * 3 + 4 * 2 = -7 + 2 + 3 * 5 = 17 + 5 * 3 + 2 = 17 + 2 ** 3 ** 2 = 512 + 2 ** 3 * 5 = 40 + 3 * 5 ** 2 = 75 + 5 * 3 + 2 / 6 + 4 * 8 ** 10 = 4294967311.33 + 5 * 3 + 2 / (6 + 4) * 8 ** 10 = 214748379.8 + 5 * 3 + 2 / (6 + 4 * 8) ** 10 = 15 + (5 * 3) + 2 / 6 + 4 * 8 ** 10 = 4294967311.33 + diff --git a/test/parse_error/run.t b/test/parse_error/run.t index 9c69912..185c9c8 100644 --- a/test/parse_error/run.t +++ b/test/parse_error/run.t @@ -1,7 +1,7 @@ $ NO_COLOR="1" print ./empty_template_expression.pi Component
- -
+ + WARNING in file ./empty_template_expression.pi:4:5-7 diff --git a/test/portal/run.t b/test/portal/run.t index e3f68ba..9f89e39 100644 --- a/test/portal/run.t +++ b/test/portal/run.t @@ -1,9 +1,9 @@ $ NO_COLOR="1" print . Main - - - - -

LOREM!

Ipsum!

- - + + + + +

LOREM!

Ipsum!

+ + diff --git a/test/record/run.t b/test/record/run.t index 799fa5b..23530ab 100644 --- a/test/record/run.t +++ b/test/record/run.t @@ -1,11 +1,11 @@ $ NO_COLOR="1" print . Component
- - 1footrue3.1415 - 1 - 321 - - 0149162536496481100 -
+ 1footrue3.1415 + 1 + 321 + + + 0149162536496481100 + diff --git a/test/slot/run.t b/test/slot/run.t index ceac26c..bf274f6 100644 --- a/test/slot/run.t +++ b/test/slot/run.t @@ -1,21 +1,21 @@ $ NO_COLOR="1" print . Component
-
Hello Default
-
- Hello, SubComponent! +
Hello Default
+
+ Hello, SubComponent! - 234567891011 + 234567891011 - JAP - - Something - Some Constant - - NOTHING!!! -
-
Yaaay! 0
Yaaay! 1
Yaaay! 2
Yaaay! 3
Yaaay! 4
Yaaay! 5
Yaaay! 6
Yaaay! 7
Yaaay! 8
Yaaay! 9
- -
+ JAP + + Something + Some Constant + + NOTHING!!! +
+
Yaaay! 0
Yaaay! 1
Yaaay! 2
Yaaay! 3
Yaaay! 4
Yaaay! 5
Yaaay! 6
Yaaay! 7
Yaaay! 8
Yaaay! 9
+ + $ NO_COLOR="1" print . ErrorComponent diff --git a/test/store/run.t b/test/store/run.t index f16fbd7..8b2e9a8 100644 --- a/test/store/run.t +++ b/test/store/run.t @@ -1,7 +1,7 @@ $ NO_COLOR="1" print . StoreValueProvider
- Somewhere in the World ... or am I??some@email.invalid+1 111 000 111Imprint/imprint + Somewhere in the World ... or am I??some@email.invalid+1 111 000 111Imprint/imprint - 42008Product A22130Product B -
+ 42008Product A22130Product B + diff --git a/test/template/run.t b/test/template/run.t index 775ba37..e4ab09c 100644 --- a/test/template/run.t +++ b/test/template/run.t @@ -1,28 +1,28 @@ $ NO_COLOR="1" print . Template - - - - FOO + + + + FOO - - + + - - - -
-
-
-
- Hello, String Template! -
- -
- + + + +
+
+
+
+ Hello, String Template! +
+ +
+ diff --git a/test/test/run.t b/test/test/run.t index d05e0ea..3cbd3f7 100644 --- a/test/test/run.t +++ b/test/test/run.t @@ -3,12 +3,12 @@

- Aliqua in elit sunt in anim culpa nostrud elit. - Elit voluptate nisi laborum est eu esse non exercitation minim. - Nisi ea enim minim quis. + Aliqua in elit sunt in anim culpa nostrud elit. + Elit voluptate nisi laborum est eu esse non exercitation minim. + Nisi ea enim minim quis.

-- 2.51.2