예제 #1
0
TEST(TestProtocol, testClass)
{
    PARSE_STATEMENT(L"class SomeClass: SomeSuperclass, FirstProtocol, AnotherProtocol {\n"
                    L"// class definition goes here\n"
                    L"}");
    ClassDefPtr c;

    ASSERT_NOT_NULL(c = std::dynamic_pointer_cast<ClassDef>(root));
    ASSERT_EQ(3, c->numParents());
}