Пример #1
0
IUTEST_TYPED_TEST(StrCaseTest, Null)
{
    TypeParam* p=NULL;

    IUTEST_ASSERT_STRCASEEQ(NULL, p);
    IUTEST_EXPECT_STRCASEEQ(NULL, p);
    IUTEST_INFORM_STRCASEEQ(NULL, p);

    IUTEST_ASSERT_STRCASENE(TestFixture::Text::test, NULL);
    IUTEST_EXPECT_STRCASENE(TestFixture::Text::test, NULL);
    IUTEST_INFORM_STRCASENE(TestFixture::Text::test, NULL);

    IUTEST_ASSERT_STRCASENE(NULL, TestFixture::Text::test);
    IUTEST_EXPECT_STRCASENE(NULL, TestFixture::Text::test);
    IUTEST_INFORM_STRCASENE(NULL, TestFixture::Text::test);
}
Пример #2
0
IUTEST(SyntaxTest, StrCaseNe)
{
    const char test[] = "host";
    if( const char* p = "test" )
        IUTEST_ASSERT_STRCASENE(p, test) << p;
    if( const char* p = "test" )
        IUTEST_EXPECT_STRCASENE(p, test) << p;
    if( const char* p = "test" )
        IUTEST_INFORM_STRCASENE(p, test) << p;
    if( const char* p = "test" )
        IUTEST_ASSUME_STRCASENE(p, test) << p;
}
Пример #3
0
IUTEST_TYPED_TEST(StrCaseTest, Raw)
{
    const TypeParam* p = TestFixture::Text::test;
    IUTEST_ASSERT_STRCASEEQ(TestFixture::Text::test, p);
    IUTEST_EXPECT_STRCASEEQ(TestFixture::Text::test, p);
    IUTEST_INFORM_STRCASEEQ(TestFixture::Text::test, p);
    IUTEST_ASSERT_STRCASEEQ(TestFixture::Text::Test, p);
    IUTEST_EXPECT_STRCASEEQ(TestFixture::Text::Test, p);
    IUTEST_INFORM_STRCASEEQ(TestFixture::Text::Test, p);

    IUTEST_ASSERT_STRCASENE(TestFixture::Text::host, p);
    IUTEST_EXPECT_STRCASENE(TestFixture::Text::host, p);
    IUTEST_INFORM_STRCASENE(TestFixture::Text::host, p);
}
Пример #4
0
IUTEST_TYPED_TEST(StrCaseTest, String)
{
    typename TestFixture::String test1 = TestFixture::Text::test;
    typename TestFixture::String test2 = TestFixture::Text::test;
    IUTEST_ASSERT_STRCASEEQ(test1, TestFixture::Text::test);
    IUTEST_EXPECT_STRCASEEQ(test1, TestFixture::Text::test);
    IUTEST_INFORM_STRCASEEQ(test1, TestFixture::Text::test);
    IUTEST_ASSERT_STRCASEEQ(test1, test2);
    IUTEST_EXPECT_STRCASEEQ(test1, test2);
    IUTEST_INFORM_STRCASEEQ(test1, test2);
    IUTEST_ASSERT_STRCASEEQ(TestFixture::Text::test, test2);
    IUTEST_EXPECT_STRCASEEQ(TestFixture::Text::test, test2);
    IUTEST_INFORM_STRCASEEQ(TestFixture::Text::test, test2);

    typename TestFixture::String Test = TestFixture::Text::Test;
    IUTEST_ASSERT_STRCASEEQ(Test, TestFixture::Text::test);
    IUTEST_EXPECT_STRCASEEQ(Test, TestFixture::Text::test);
    IUTEST_INFORM_STRCASEEQ(Test, TestFixture::Text::test);
    IUTEST_ASSERT_STRCASEEQ(Test, test2);
    IUTEST_EXPECT_STRCASEEQ(Test, test2);
    IUTEST_INFORM_STRCASEEQ(Test, test2);
    IUTEST_ASSERT_STRCASEEQ(TestFixture::Text::test, Test);
    IUTEST_EXPECT_STRCASEEQ(TestFixture::Text::test, Test);
    IUTEST_INFORM_STRCASEEQ(TestFixture::Text::test, Test);

    typename TestFixture::String host = TestFixture::Text::host;
    IUTEST_ASSERT_STRCASENE(host, TestFixture::Text::test);
    IUTEST_EXPECT_STRCASENE(host, TestFixture::Text::test);
    IUTEST_INFORM_STRCASENE(host, TestFixture::Text::test);
    IUTEST_ASSERT_STRCASENE(host, test2);
    IUTEST_EXPECT_STRCASENE(host, test2);
    IUTEST_INFORM_STRCASENE(host, test2);
    IUTEST_ASSERT_STRCASENE(TestFixture::Text::test, host);
    IUTEST_EXPECT_STRCASENE(TestFixture::Text::test, host);
    IUTEST_INFORM_STRCASENE(TestFixture::Text::test, host);
}