Skip to content

Commit

Permalink
C++: do not cast numerical expected values of enums to the enum type
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Mingun committed Jul 19, 2024
1 parent ab9083f commit d1586f5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions spec/cpp_stl_11/test_switch_manual_enum_invalid.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions spec/cpp_stl_11/test_switch_manual_enum_invalid_else.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions spec/cpp_stl_98/test_switch_manual_enum_invalid.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions spec/cpp_stl_98/test_switch_manual_enum_invalid_else.cpp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d1586f5

Please sign in to comment.