Skip to content

Update regression tests after recent changes #1208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
x.to_string() is clubs
x2.to_string() is clubs
x3.to_string() is hearts
x3.to_code() is skat_game::hearts
x4.to_string() is hearts
with if else: clubs
with inspect: clubs

Expand Down Expand Up @@ -27,3 +30,7 @@ f is (f2) is false
f2 is (f ) is false
(f & f2) == f2 is true
inspecting f: includes all f2's flags ('cached' and 'current')
f_from_string is (cached, current, cached_and_current)
f_from_string is (current, obsolete)
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
f_from_string is (cached, obsolete)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
../../../include/cpp2util.h(937) 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]
../../../include/cpp2util.h(964) 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]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
../../../include/cpp2util.h(749) : Bounds safety violation
../../../include/cpp2util.h(776) : Bounds safety violation
Original file line number Diff line number Diff line change
@@ -1 +1 @@
../../../include/cpp2util.h(749) : Contract violation: fill: value must contain at least count elements
../../../include/cpp2util.h(776) : Contract violation: fill: value must contain at least count elements
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sending error to my framework... [dynamic null dereference attempt detected]
from source location: ../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = int *&]
from source location: ../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = int *&]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::expected<int, bool>]: Null safety violation: std::expected has an unexpected value
../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::expected<int, bool>]: Null safety violation: std::expected has an unexpected value
Original file line number Diff line number Diff line change
@@ -1 +1 @@
../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::optional<int>]: Null safety violation: std::optional does not contain a value
../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::optional<int>]: Null safety violation: std::optional does not contain a value
Original file line number Diff line number Diff line change
@@ -1 +1 @@
../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::shared_ptr<int>]: Null safety violation: std::shared_ptr is empty
../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::shared_ptr<int>]: Null safety violation: std::shared_ptr is empty
Original file line number Diff line number Diff line change
@@ -1 +1 @@
../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::unique_ptr<int> &]: Null safety violation: std::unique_ptr is empty
../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::unique_ptr<int>]: Null safety violation: std::unique_ptr is empty
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
x.to_string() is clubs
x2.to_string() is clubs
x3.to_string() is hearts
x3.to_code() is skat_game::hearts
x4.to_string() is hearts
with if else: clubs
with inspect: clubs

Expand Down Expand Up @@ -27,3 +30,7 @@ f is (f2) is false
f2 is (f ) is false
(f & f2) == f2 is true
inspecting f: includes all f2's flags ('cached' and 'current')
f_from_string is (cached, current, cached_and_current)
f_from_string is (current, obsolete)
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
f_from_string is (cached, obsolete)
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
x.to_string() is clubs
x2.to_string() is clubs
x3.to_string() is hearts
x3.to_code() is skat_game::hearts
x4.to_string() is hearts
with if else: clubs
with inspect: clubs

Expand Down Expand Up @@ -27,3 +30,7 @@ f is (f2) is false
f2 is (f ) is false
(f & f2) == f2 is true
inspecting f: includes all f2's flags ('cached' and 'current')
f_from_string is (cached, current, cached_and_current)
f_from_string is (current, obsolete)
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
f_from_string is (cached, obsolete)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
../../../include/cpp2util.h(937) 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]
../../../include/cpp2util.h(964) 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]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
../../../include/cpp2util.h(749) : Bounds safety violation
../../../include/cpp2util.h(776) : Bounds safety violation
Original file line number Diff line number Diff line change
@@ -1 +1 @@
../../../include/cpp2util.h(749) : Contract violation: fill: value must contain at least count elements
../../../include/cpp2util.h(776) : Contract violation: fill: value must contain at least count elements
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sending error to my framework... [dynamic null dereference attempt detected]
from source location: ../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = int *&]
from source location: ../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = int *&]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::optional<int>]: Null safety violation: std::optional does not contain a value
../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::optional<int>]: Null safety violation: std::optional does not contain a value
Original file line number Diff line number Diff line change
@@ -1 +1 @@
../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::shared_ptr<int>]: Null safety violation: std::shared_ptr is empty
../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::shared_ptr<int>]: Null safety violation: std::shared_ptr is empty
Original file line number Diff line number Diff line change
@@ -1 +1 @@
../../../include/cpp2util.h(828) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::unique_ptr<int> &]: Null safety violation: std::unique_ptr is empty
../../../include/cpp2util.h(855) decltype(auto) cpp2::impl::assert_not_null(auto &&, std::source_location) [arg:auto = std::unique_ptr<int>]: Null safety violation: std::unique_ptr is empty
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
x.to_string() is clubs
x2.to_string() is clubs
x3.to_string() is hearts
x3.to_code() is skat_game::hearts
x4.to_string() is hearts
with if else: clubs
with inspect: clubs

Expand Down Expand Up @@ -27,3 +30,7 @@ f is (f2) is false
f2 is (f ) is false
(f & f2) == f2 is true
inspecting f: includes all f2's flags ('cached' and 'current')
f_from_string is (cached, current, cached_and_current)
f_from_string is (current, obsolete)
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
f_from_string is (cached, obsolete)
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
x.to_string() is clubs
x2.to_string() is clubs
x3.to_string() is hearts
x3.to_code() is skat_game::hearts
x4.to_string() is hearts
with if else: clubs
with inspect: clubs

Expand Down Expand Up @@ -27,3 +30,7 @@ f is (f2) is false
f2 is (f ) is false
(f & f2) == f2 is true
inspecting f: includes all f2's flags ('cached' and 'current')
f_from_string is (cached, current, cached_and_current)
f_from_string is (current, obsolete)
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
f_from_string is (cached, obsolete)
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
x.to_string() is clubs
x2.to_string() is clubs
x3.to_string() is hearts
x3.to_code() is skat_game::hearts
x4.to_string() is hearts
with if else: clubs
with inspect: clubs

Expand Down Expand Up @@ -27,3 +30,7 @@ f is (f2) is false
f2 is (f ) is false
(f & f2) == f2 is true
inspecting f: includes all f2's flags ('cached' and 'current')
f_from_string is (cached, current, cached_and_current)
f_from_string is (current, obsolete)
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
f_from_string is (cached, obsolete)
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
In file included from mixed-bugfix-for-ufcs-non-local.cpp:6:
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
2100 | //
2100 | constexpr auto is( X const& x ) -> bool
| ^
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
2137 | // Value case
2137 |
| ^
mixed-bugfix-for-ufcs-non-local.cpp2:13:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
mixed-bugfix-for-ufcs-non-local.cpp2:13:36: error: template argument 1 is invalid
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
2100 | //
2100 | constexpr auto is( X const& x ) -> bool
| ^
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
2137 | // Value case
2137 |
| ^
mixed-bugfix-for-ufcs-non-local.cpp2:21:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
mixed-bugfix-for-ufcs-non-local.cpp2:21:36: error: template argument 1 is invalid
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
2100 | //
2100 | constexpr auto is( X const& x ) -> bool
| ^
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
2137 | // Value case
2137 |
| ^
mixed-bugfix-for-ufcs-non-local.cpp2:31:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
mixed-bugfix-for-ufcs-non-local.cpp2:31:36: error: template argument 1 is invalid
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
2100 | //
2100 | constexpr auto is( X const& x ) -> bool
| ^
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
2137 | // Value case
2137 |
| ^
mixed-bugfix-for-ufcs-non-local.cpp2:33:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
mixed-bugfix-for-ufcs-non-local.cpp2:33:36: error: template argument 1 is invalid
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
2100 | //
2100 | constexpr auto is( X const& x ) -> bool
| ^
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
2137 | // Value case
2137 |
| ^
mixed-bugfix-for-ufcs-non-local.cpp2:21:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
mixed-bugfix-for-ufcs-non-local.cpp2:21:36: error: template argument 1 is invalid
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
x.to_string() is clubs
x2.to_string() is clubs
x3.to_string() is hearts
x3.to_code() is skat_game::hearts
x4.to_string() is hearts
with if else: clubs
with inspect: clubs

Expand Down Expand Up @@ -27,3 +30,7 @@ f is (f2) is false
f2 is (f ) is false
(f & f2) == f2 is true
inspecting f: includes all f2's flags ('cached' and 'current')
f_from_string is (cached, current, cached_and_current)
f_from_string is (current, obsolete)
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
f_from_string is (cached, obsolete)
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
In file included from mixed-bugfix-for-ufcs-non-local.cpp:6:
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
2100 | //-------------------------------------------------------------------------------------------------------------
2100 | constexpr auto is( X const& x ) -> bool
| ^
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
2137 |
| ^
mixed-bugfix-for-ufcs-non-local.cpp2:13:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
mixed-bugfix-for-ufcs-non-local.cpp2:13:36: error: template argument 1 is invalid
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
2100 | //-------------------------------------------------------------------------------------------------------------
2100 | constexpr auto is( X const& x ) -> bool
| ^
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
2137 |
| ^
mixed-bugfix-for-ufcs-non-local.cpp2:21:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
mixed-bugfix-for-ufcs-non-local.cpp2:21:36: error: template argument 1 is invalid
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
2100 | //-------------------------------------------------------------------------------------------------------------
2100 | constexpr auto is( X const& x ) -> bool
| ^
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
2137 |
| ^
mixed-bugfix-for-ufcs-non-local.cpp2:31:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
mixed-bugfix-for-ufcs-non-local.cpp2:31:36: error: template argument 1 is invalid
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
2100 | //-------------------------------------------------------------------------------------------------------------
2100 | constexpr auto is( X const& x ) -> bool
| ^
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
2137 |
| ^
mixed-bugfix-for-ufcs-non-local.cpp2:33:12: note: in expansion of macro ‘CPP2_UFCS_NONLOCAL’
mixed-bugfix-for-ufcs-non-local.cpp2:33:36: error: template argument 1 is invalid
../../../include/cpp2util.h:2100:1: error: lambda-expression in template parameter type
2100 | //-------------------------------------------------------------------------------------------------------------
2100 | constexpr auto is( X const& x ) -> bool
| ^
../../../include/cpp2util.h:2137:59: note: in expansion of macro ‘CPP2_UFCS_’
2137 |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pure2-assert-expected-not-null.cpp2(7): error C2143: syntax error: missing ';' b
pure2-assert-expected-not-null.cpp2(7): error C2143: syntax error: missing ';' before '}'
pure2-assert-expected-not-null.cpp2(9): error C2065: 'ex': undeclared identifier
pure2-assert-expected-not-null.cpp2(9): error C2672: 'cpp2::impl::assert_not_null': no matching overloaded function found
D:\a\cppfront\cppfront\include\cpp2util.h(828): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&,std::source_location)'
D:\a\cppfront\cppfront\include\cpp2util.h(855): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&,std::source_location)'
pure2-assert-expected-not-null.cpp2(14): error C2039: 'expected': is not a member of 'std'
predefined C++ types (compiler internal)(347): note: see declaration of 'std'
pure2-assert-expected-not-null.cpp2(14): error C2062: type 'int' unexpected
Expand All @@ -19,4 +19,4 @@ pure2-assert-expected-not-null.cpp2(14): note: while trying to match the argumen
pure2-assert-expected-not-null.cpp2(14): error C2143: syntax error: missing ';' before '}'
pure2-assert-expected-not-null.cpp2(15): error C2065: 'ex': undeclared identifier
pure2-assert-expected-not-null.cpp2(15): error C2672: 'cpp2::impl::assert_not_null': no matching overloaded function found
D:\a\cppfront\cppfront\include\cpp2util.h(828): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&,std::source_location)'
D:\a\cppfront\cppfront\include\cpp2util.h(855): note: could be 'decltype(auto) cpp2::impl::assert_not_null(_T0 &&,std::source_location)'
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
x.to_string() is clubs
x2.to_string() is clubs
x3.to_string() is hearts
x3.to_code() is skat_game::hearts
x4.to_string() is hearts
with if else: clubs
with inspect: clubs

Expand Down Expand Up @@ -27,3 +30,7 @@ f is (f2) is false
f2 is (f ) is false
(f & f2) == f2 is true
inspecting f: includes all f2's flags ('cached' and 'current')
f_from_string is (cached, current, cached_and_current)
f_from_string is (current, obsolete)
f_from_string.to_code() is (file_attributes::current | file_attributes::obsolete)
f_from_string is (cached, obsolete)
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ bar result_expr: $1-$2 expected_results foo-
bar result_expr: $1-$2 expected_results



bar result_expr: $1-$2 expected_results foo-
13_y: OK regex: (\v+)(\V) parsed_regex: (\v+)(\V) str: foo


bar result_expr: $1-$2 expected_results


-b
14_y: OK regex: foo(\v)bar parsed_regex: foo(\v)bar str: foo
bar result_expr: $1 expected_results
15_y: OK regex: (\V)(\v) parsed_regex: (\V)(\v) str: foo
bar result_expr: $1-$2 expected_results o-
16_y: OK regex: (\v)(\V) parsed_regex: (\v)(\V) str: foo
bar result_expr: $1-$2 expected_results
-b
14_y: OK regex: foo(\v)bar parsed_regex: foo(\v)bar str: foo
bar result_expr: $1 expected_results
Expand Down
Loading