Ejemplo n.º 1
0
TEST(XmlRpcArrayElementParser, NegativeTests) {
    // empty string should not match
    test_negative("");

    // two objects should not match
    test_negative("<object /><object />");

    // naked value should not match
    test_negative("<null />");
}
Ejemplo n.º 2
0
void test() {
    srand(time(0));

    for (int u = 0; u < MAX_TESTS; ++u) test_positive();

    for (int u = 0; u < MAX_TESTS; ++u) test_negative();
}
Ejemplo n.º 3
0
int main()
{
    std::cout << "this is bar_test, hello\n";
    test_negative();
    test_positive();
    test_zero();
}
Ejemplo n.º 4
0
TEST(XmlVersionDeclParser, NegativeTests) {
    // empty string should not match
    test_negative("");

    // <?xml version='1.0' ?> with leading space should not match
    // TODO uncomment this test_negative(" <?xml version='1.0' ?>");
}
Ejemplo n.º 5
0
 static bool 
 call(fusion::extension::adt_attribute_proxy<T, N, Const> const& val) 
 { 
     return test_negative(val.get()); 
 }