Skip to content

Commit

Permalink
gentest
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattmart42 committed Apr 29, 2024
1 parent 2ec4399 commit 434e5c4
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions test/generator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,13 @@ const fixtures = [
name: "functions",
source: `
auto z = 0.5;
func f(x: float, y: bool) {
print x;
return;
}
func g(): bool {
return false;
}
f(z, g());
func f(x: float, y: bool) {
print x;
return;
}
func g(): bool {
return false;
}
`,
expected: dedent`
let z_1 = 0.5;
Expand All @@ -108,7 +107,6 @@ const fixtures = [
function g_5() {
return false;
}
f_2(z_1, g_5());
`,
},
// Not synactically correct yet - array member not implemented
Expand Down

0 comments on commit 434e5c4

Please sign in to comment.