0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

Fixed test for missing conversion operator

This commit is contained in:
rbock 2015-12-28 18:36:06 +01:00
parent cda1249b69
commit 5912752a68

View File

@ -33,11 +33,9 @@ function(test_constraint name pattern)
set_property(TEST ${test} PROPERTY PASS_REGULAR_EXPRESSION ${pattern}) set_property(TEST ${test} PROPERTY PASS_REGULAR_EXPRESSION ${pattern})
endfunction() endfunction()
add_executable(see_what_happens no_conversion_operator_if_null_not_trivial.cpp)
target_link_libraries(see_what_happens PRIVATE sqlpp11 sqlpp11_testing)
test_constraint(count_of_count "count\\(\\) cannot be used on an aggregate function") test_constraint(count_of_count "count\\(\\) cannot be used on an aggregate function")
test_constraint(max_of_max "max\\(\\) cannot be used on an aggregate function") test_constraint(max_of_max "max\\(\\) cannot be used on an aggregate function")
test_constraint(no_conversion_operator_if_null_not_trivial "int i = row.alpha") test_constraint(no_conversion_operator_if_null_not_trivial "cannot convert|no viable conversion")
test_constraint(require_insert "required column is missing") test_constraint(require_insert "required column is missing")
test_constraint(must_not_insert "one assignment is prohibited") test_constraint(must_not_insert "one assignment is prohibited")
test_constraint(must_not_update "one assignment is prohibited") test_constraint(must_not_update "one assignment is prohibited")