Skip to content

Commit a4ab256

Browse files
committed
🚨 fixing parser tests
1 parent 7f5651b commit a4ab256

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PascalInterpreter/PascalInterpreterTests/ParserTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ class ParserTests: XCTestCase {
323323

324324
let parser = Parser(program)
325325
let result = parser.parse()
326-
let compound = Compound(children: [ProcedureCall(name: "Factorial", actualParameters: [])])
326+
let compound = Compound(children: [ProcedureCall(name: "Factorial", actualParameters: [Variable(name: "x")]), NoOp()])
327327
let node = Program(name: "Main", block: Block(declarations: [], compound: compound))
328328
XCTAssertEqual(result, node)
329329
}

0 commit comments

Comments
 (0)