Skip to content
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

A designed fail test is unexpectedly passed #3231

Open
sytuannguyen opened this issue Jul 19, 2024 · 0 comments
Open

A designed fail test is unexpectedly passed #3231

sytuannguyen opened this issue Jul 19, 2024 · 0 comments
Labels
type: new A new issue has been created and requires attention

Comments

@sytuannguyen
Copy link
Contributor

sytuannguyen commented Jul 19, 2024

I have tried to make a test expectedly fail but it is passed by the build.
Precisely, I have changed the line 132 in the test testElasticIsotropic.cpp to make it fail as follow

Initial code

EXPECT_DOUBLE_EQ( stress( 0, 0, 5 ), 0 );

Modified code to make it fail

EXPECT_DOUBLE_EQ( stress( 0, 0, 5 ), 1.0 );

However, I have observed that the build is successful with this change. I have verified that this test is well listed in the corresponding CMakeList.txt

@sytuannguyen sytuannguyen added the type: new A new issue has been created and requires attention label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: new A new issue has been created and requires attention
Projects
None yet
Development

No branches or pull requests

1 participant