This commit is contained in:
@@ -277,10 +277,10 @@ TEST_CASE( "Parse function declaration", "[parser]" ){
|
||||
auto functionDeclaration = (ParsedFunctionDeclarationStatement*)firstStatement;
|
||||
REQUIRE(functionDeclaration->GetIdentifier() == HashedString::CreateLookup(u"foo"));
|
||||
auto parameters = functionDeclaration->GetParameters();
|
||||
CHECK(parameters -> at(0) ->GetType() == HashedString::CreateLookup(u"number"));
|
||||
CHECK(parameters -> at(0) ->GetIdentifier() == HashedString::CreateLookup(u"bar"));
|
||||
CHECK(parameters -> at(1) ->GetType() == HashedString::CreateLookup(u"number"));
|
||||
CHECK(parameters -> at(1) ->GetIdentifier() == HashedString::CreateLookup(u"par"));
|
||||
CHECK(*parameters -> at(0) ->GetType() == HashedString::CreateLookup(u"number"));
|
||||
CHECK(*parameters -> at(0) ->GetIdentifier() == HashedString::CreateLookup(u"bar"));
|
||||
CHECK(*parameters -> at(1) ->GetType() == HashedString::CreateLookup(u"number"));
|
||||
CHECK(*parameters -> at(1) ->GetIdentifier() == HashedString::CreateLookup(u"par"));
|
||||
|
||||
for (auto t : v){
|
||||
delete t;
|
||||
|
||||
Reference in New Issue
Block a user