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

CxxTest User Guide - TS_ASSERT_THROWS_NOTHING - wrong example #131

Open
shaiu opened this issue Dec 14, 2016 · 0 comments
Open

CxxTest User Guide - TS_ASSERT_THROWS_NOTHING - wrong example #131

shaiu opened this issue Dec 14, 2016 · 0 comments

Comments

@shaiu
Copy link

shaiu commented Dec 14, 2016

see:
http://cxxtest.com/guide.html#ts_assert_throws_nothing

In the example there is a "bug"

void throws_nothing(void)
    { }

    void test_assert_throws_nothing(void)
    {
        TS_ASSERT_THROWS_ASSERT(self.throws_nothing());
    }

Should be:

void throws_nothing(void)
    { }

    void test_assert_throws_nothing(void)
    {
        TS_ASSERT_THROWS_NOTHING(self.throws_nothing());
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant