Skip to content

Commit 46133cf

Browse files
committed
Fix tests
1 parent 7c06774 commit 46133cf

File tree

77 files changed

+602
-663
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+602
-663
lines changed

regression-tests/pure2-is-with-free-functions-predicate.cpp2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fun: (v) = {
1515
main: () -> int = {
1616
fun(3.14);
1717
fun(42);
18-
fun('a');
18+
fun(std::int8_t('a')); // char on ARM is unsigned https://discourse.llvm.org/t/why-is-char-type-considered-unsigned-in-arm-architecture/69763
1919
}
2020

2121
pred_i: (x : int ) -> bool = {

regression-tests/pure2-is-with-unnamed-predicates.cpp2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ fun: (v) = {
1515
main: () -> int = {
1616
fun(3.14);
1717
fun(42);
18-
fun('a');
18+
fun(std::int8_t('a')); // char on ARM is unsigned https://discourse.llvm.org/t/why-is-char-type-considered-unsigned-in-arm-architecture/69763
1919
}

regression-tests/pure2-type-safety-1.cpp2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ main: () -> int =
2323

2424
test_generic: ( x, msg ) = {
2525
msgx: std::string = msg;
26-
print( msgx + " is int? ", x is int );
26+
log( msgx + " is int? ", x is int );
2727
}
2828

29-
print: ( msg: std::string, b: bool ) = {
29+
log: ( msg: std::string, b: bool ) = {
3030
bmsg: * const char;
3131
if b { bmsg = "true"; }
3232
else { bmsg = "false"; }

regression-tests/test-results/apple-clang-14-c++2b/pure2-is-with-free-functions-predicate.cpp.execution

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
3.140000 is bigger than 3
33
42 is integer bigger than 3
44
42 is bigger than 3
5-
a is integer bigger than 3
6-
a is bigger than 3
5+
97 is integer bigger than 3
6+
97 is bigger than 3

regression-tests/test-results/apple-clang-14-c++2b/pure2-is-with-unnamed-predicates.cpp.execution

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
3.140000 is bigger than 3
33
42 is integer bigger than 3
44
42 is bigger than 3
5-
a is integer bigger than 3
6-
a is bigger than 3
5+
97 is integer bigger than 3
6+
97 is bigger than 3
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
42
1+
42

regression-tests/test-results/apple-clang-14-c++2b/pure2-variadics.cpp.execution

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ abr
44
3.14word-1500
55
first all() returned false
66
second all() returned true
7-
sum of (1, 2, 3, 100) is: 106
7+
sum of (1, 2, 3, 100) is: 106
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(970) decltype(auto) cpp2::impl::assert_in_bounds(auto &&, std::source_location) [arg = 5, x:auto = std::vector<int>]: Bounds safety violation: out of bounds access attempt detected - attempted access at index 5, [min,max] range is [0,4]
1+
../../../include/cpp2util.h(1068) decltype(auto) cpp2::impl::assert_in_bounds(auto &&, std::source_location) [arg = 5, x:auto = std::vector<int>]: Bounds safety violation: out of bounds access attempt detected - attempted access at index 5, [min,max] range is [0,4]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(782) : Bounds safety violation
1+
../../../include/cpp2util.h(880) : Bounds safety violation
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../../include/cpp2util.h(782) : Contract violation: fill: value must contain at least count elements
1+
../../../include/cpp2util.h(880) : Contract violation: fill: value must contain at least count elements

0 commit comments

Comments
 (0)