Skip to content

Commit 732b4c2

Browse files
committed
C++: do not cast numerical expected values of enums to the enum type
The test was initially introduced with that logic in 3bdfb59, however the similar tests `enum_invalid` and `enum_to_i_invalid` uses the numerical values and passes successfully, which means that such manual edits in tests are not required. Regenerate those tests from KST with command: ./spec_kst_to_all -t cpp_stl_98 -t cpp_stl_11 --all-specs -f
1 parent b2b5a14 commit 732b4c2

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

spec/cpp_stl_11/test_switch_manual_enum_invalid.cpp

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/cpp_stl_11/test_switch_manual_enum_invalid_else.cpp

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/cpp_stl_98/test_switch_manual_enum_invalid.cpp

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/cpp_stl_98/test_switch_manual_enum_invalid_else.cpp

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)