working on parserlang
This commit is contained in:
parent
b702431c88
commit
fa0f9cd820
2 changed files with 16 additions and 14 deletions
|
|
@ -131,6 +131,7 @@ if(ARCHEUS_STD_TESTS)
|
|||
#tests/std/vector.c
|
||||
tests/std/lexer.c
|
||||
tests/std/parser.c
|
||||
tests/std/temp_parserlang.c
|
||||
|
||||
${ARCHEUS_STD_SOURCES}
|
||||
)
|
||||
|
|
|
|||
|
|
@ -155,17 +155,18 @@ ARC_TEST(Parser_Basic_ParseError){
|
|||
arc_errno = 0;
|
||||
}
|
||||
|
||||
ARC_TEST(Parser_ParserLang_BasicTest){
|
||||
ARC_Parser *parser;
|
||||
ARC_Parser_CreateAsParserLang(&parser);
|
||||
|
||||
ARC_String *tempString;
|
||||
ARC_String_CreateWithStrlen(&tempString, "<test> -> <testingStuffs>\n");
|
||||
|
||||
//this destroys string, so no need for cleanup
|
||||
ARC_Parser_Parse(parser, &tempString);
|
||||
|
||||
ARC_Parser_Destroy(parser);
|
||||
|
||||
ARC_CHECK(arc_errno == 0);
|
||||
}
|
||||
//ARC_TEST(Parser_ParserLang_BasicTest){
|
||||
// ARC_Parser *parser;
|
||||
// ARC_Parser_CreateAsParserLang(&parser);
|
||||
//
|
||||
// ARC_String *tempString;
|
||||
// ARC_String_CreateWithStrlen(&tempString, "<test> -> <testingStuffs>\n");
|
||||
//
|
||||
// //this destroys string, so no need for cleanup
|
||||
// ARC_Parser_Parse(parser, &tempString);
|
||||
//
|
||||
// ARC_Parser_Destroy(parser);
|
||||
//
|
||||
// ARC_CHECK(arc_errno == 0);
|
||||
//}
|
||||
//
|
||||
Loading…
Add table
Add a link
Reference in a new issue