Skip to content

Commit

Permalink
Updated JavaScript tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Aug 8, 2024
1 parent a7c7774 commit ef86447
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/bindings/javascript/analyservariable.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe("Analyser Variable tests", () => {
});
test('Checking Analyser Variable index.', () => {
const av = am.algebraicVariable(7)
expect(av.index()).toBe(7)
expect(av.index()).toBe(2)
});
test('Checking Analyser Variable initialising variable.', () => {
const av = am.algebraicVariable(15)
Expand Down
4 changes: 2 additions & 2 deletions tests/bindings/javascript/generator.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ describe("Generator tests", () => {
g.setModel(a.model())

const interface_lines = g.interfaceCode().split('\n')
expect(interface_lines.length).toBe(42)
expect(interface_lines.length).toBe(43)

const implementation_lines = g.implementationCode().split('\n')
expect(implementation_lines.length).toBe(69)
expect(implementation_lines.length).toBe(70)

const equation_line_1 = libcellml.Generator.equationCode(a.model().equation(0).ast())
expect(equation_line_1.length).toBe(14)
Expand Down

0 comments on commit ef86447

Please sign in to comment.