Skip to content

Commit

Permalink
update tests and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Tengs Penkwe committed Feb 21, 2024
1 parent 192acd2 commit 4cd63a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/function.frm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Farm myFarm = [Name: "myFarm", Area: 1200, GridLength: 10, Polyculture: true, MaxWaterUsage: 1500, Season: "Summer"];
Farm myFarm = [Name: "myFarm", Height: 100, Width: 20, Polyculture: true, MaxWaterUsage: 1500, Season: "Summer"];

def isOkToPlant(c: Crop, f: Farm) -> Bool {
Bool canPlant = false;
Expand Down
2 changes: 1 addition & 1 deletion test/frontend/Trans.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe("transProgram", () => {
`;
const tree2 = parseProgram(input2, false);
const result2 = transProgram(tree2, false);
expect(() => result2.eval(new Context())).to.throw(/Function * does not exist in Farm class/);
expect(() => result2.eval(new Context())).to.throw(/Function * does not exist in Crop class/);
});

it("OOP function fro other type isn't ok ", () => {
Expand Down

0 comments on commit 4cd63a9

Please sign in to comment.