Skip to content

Commit 4208576

Browse files
committed
JavaScript formatting.
1 parent 790b677 commit 4208576

File tree

8 files changed

+102
-25
lines changed

8 files changed

+102
-25
lines changed

tests/bindings/javascript/sed.coverage.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,10 @@ test.describe('Sed coverage tests', () => {
459459
instance.run();
460460

461461
assertIssues(loc, instance, [
462-
[loc.Issue.Type.ERROR, 'Task instance | CVODE: the upper half-bandwidth cannot be equal to -1. It must be between 0 and 3.']
462+
[
463+
loc.Issue.Type.ERROR,
464+
'Task instance | CVODE: the upper half-bandwidth cannot be equal to -1. It must be between 0 and 3.'
465+
]
463466
]);
464467
});
465468

tests/bindings/javascript/sed.instance.test.js

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,10 @@ test.describe('Sed instance tests', () => {
104104

105105
assertIssues(loc, instance, [
106106
[loc.Issue.Type.ERROR, 'Task | Model: the CellML file is overconstrained.'],
107-
[loc.Issue.Type.ERROR, "Task | Model | CellML | Analyser: variable 'x' in component 'my_component' is computed more than once."]
107+
[
108+
loc.Issue.Type.ERROR,
109+
"Task | Model | CellML | Analyser: variable 'x' in component 'my_component' is computed more than once."
110+
]
108111
]);
109112
});
110113

@@ -118,7 +121,10 @@ test.describe('Sed instance tests', () => {
118121

119122
assertIssues(loc, instance, [
120123
[loc.Issue.Type.ERROR, 'Task | Model: the CellML file is underconstrained.'],
121-
[loc.Issue.Type.ERROR, "Task | Model | CellML | Analyser: the type of variable 'x' in component 'my_component' is unknown."]
124+
[
125+
loc.Issue.Type.ERROR,
126+
"Task | Model | CellML | Analyser: the type of variable 'x' in component 'my_component' is unknown."
127+
]
122128
]);
123129
});
124130

@@ -132,8 +138,14 @@ test.describe('Sed instance tests', () => {
132138

133139
assertIssues(loc, instance, [
134140
[loc.Issue.Type.ERROR, 'Task | Model: the CellML file is unsuitably constrained.'],
135-
[loc.Issue.Type.ERROR, "Task | Model | CellML | Analyser: variable 'y' in component 'my_component' is computed more than once."],
136-
[loc.Issue.Type.ERROR, "Task | Model | CellML | Analyser: the type of variable 'x' in component 'my_component' is unknown."]
141+
[
142+
loc.Issue.Type.ERROR,
143+
"Task | Model | CellML | Analyser: variable 'y' in component 'my_component' is computed more than once."
144+
],
145+
[
146+
loc.Issue.Type.ERROR,
147+
"Task | Model | CellML | Analyser: the type of variable 'x' in component 'my_component' is unknown."
148+
]
137149
]);
138150
});
139151

@@ -214,7 +226,10 @@ test.describe('Sed instance tests', () => {
214226
let instance = document.instantiate();
215227

216228
assertIssues(loc, instance, [
217-
[loc.Issue.Type.ERROR, 'Task instance | KINSOL: the upper half-bandwidth cannot be equal to -1. It must be between 0 and 0.']
229+
[
230+
loc.Issue.Type.ERROR,
231+
'Task instance | KINSOL: the upper half-bandwidth cannot be equal to -1. It must be between 0 and 0.'
232+
]
218233
]);
219234

220235
kinsol.linearSolver = loc.SolverKinsol.LinearSolver.DENSE;
@@ -258,13 +273,19 @@ test.describe('Sed instance tests', () => {
258273
let instance = document.instantiate();
259274

260275
assertIssues(loc, instance, [
261-
[loc.Issue.Type.ERROR, 'Task instance | KINSOL: the upper half-bandwidth cannot be equal to -1. It must be between 0 and 0.']
276+
[
277+
loc.Issue.Type.ERROR,
278+
'Task instance | KINSOL: the upper half-bandwidth cannot be equal to -1. It must be between 0 and 0.'
279+
]
262280
]);
263281

264282
instance.run();
265283

266284
assertIssues(loc, instance, [
267-
[loc.Issue.Type.ERROR, 'Task instance | KINSOL: the upper half-bandwidth cannot be equal to -1. It must be between 0 and 0.']
285+
[
286+
loc.Issue.Type.ERROR,
287+
'Task instance | KINSOL: the upper half-bandwidth cannot be equal to -1. It must be between 0 and 0.'
288+
]
268289
]);
269290

270291
kinsol.linearSolver = loc.SolverKinsol.LinearSolver.DENSE;

tests/bindings/javascript/solver.cvode.test.js

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ test.describe('Solver CVODE tests', () => {
5252
const instance = document.instantiate();
5353

5454
assertIssues(loc, instance, [
55-
[loc.Issue.Type.ERROR, 'Task instance | CVODE: the maximum step cannot be equal to -1.234. It must be greater or equal to 0.']
55+
[
56+
loc.Issue.Type.ERROR,
57+
'Task instance | CVODE: the maximum step cannot be equal to -1.234. It must be greater or equal to 0.'
58+
]
5659
]);
5760
});
5861

@@ -70,7 +73,10 @@ test.describe('Solver CVODE tests', () => {
7073
const instance = document.instantiate();
7174

7275
assertIssues(loc, instance, [
73-
[loc.Issue.Type.ERROR, 'Task instance | CVODE: the maximum number of steps cannot be equal to 0. It must be greater than 0.']
76+
[
77+
loc.Issue.Type.ERROR,
78+
'Task instance | CVODE: the maximum number of steps cannot be equal to 0. It must be greater than 0.'
79+
]
7480
]);
7581
});
7682

@@ -89,7 +95,10 @@ test.describe('Solver CVODE tests', () => {
8995
const instance = document.instantiate();
9096

9197
assertIssues(loc, instance, [
92-
[loc.Issue.Type.ERROR, 'Task instance | CVODE: the upper half-bandwidth cannot be equal to -1. It must be between 0 and 3.']
98+
[
99+
loc.Issue.Type.ERROR,
100+
'Task instance | CVODE: the upper half-bandwidth cannot be equal to -1. It must be between 0 and 3.'
101+
]
93102
]);
94103
});
95104

@@ -108,7 +117,10 @@ test.describe('Solver CVODE tests', () => {
108117
const instance = document.instantiate();
109118

110119
assertIssues(loc, instance, [
111-
[loc.Issue.Type.ERROR, 'Task instance | CVODE: the upper half-bandwidth cannot be equal to 4. It must be between 0 and 3.']
120+
[
121+
loc.Issue.Type.ERROR,
122+
'Task instance | CVODE: the upper half-bandwidth cannot be equal to 4. It must be between 0 and 3.'
123+
]
112124
]);
113125
});
114126

@@ -127,7 +139,10 @@ test.describe('Solver CVODE tests', () => {
127139
const instance = document.instantiate();
128140

129141
assertIssues(loc, instance, [
130-
[loc.Issue.Type.ERROR, 'Task instance | CVODE: the lower half-bandwidth cannot be equal to -1. It must be between 0 and 3.']
142+
[
143+
loc.Issue.Type.ERROR,
144+
'Task instance | CVODE: the lower half-bandwidth cannot be equal to -1. It must be between 0 and 3.'
145+
]
131146
]);
132147
});
133148

@@ -146,7 +161,10 @@ test.describe('Solver CVODE tests', () => {
146161
const instance = document.instantiate();
147162

148163
assertIssues(loc, instance, [
149-
[loc.Issue.Type.ERROR, 'Task instance | CVODE: the lower half-bandwidth cannot be equal to 4. It must be between 0 and 3.']
164+
[
165+
loc.Issue.Type.ERROR,
166+
'Task instance | CVODE: the lower half-bandwidth cannot be equal to 4. It must be between 0 and 3.'
167+
]
150168
]);
151169
});
152170

@@ -164,7 +182,10 @@ test.describe('Solver CVODE tests', () => {
164182
const instance = document.instantiate();
165183

166184
assertIssues(loc, instance, [
167-
[loc.Issue.Type.ERROR, 'Task instance | CVODE: the relative tolerance cannot be equal to -1.234. It must be greater or equal to 0.']
185+
[
186+
loc.Issue.Type.ERROR,
187+
'Task instance | CVODE: the relative tolerance cannot be equal to -1.234. It must be greater or equal to 0.'
188+
]
168189
]);
169190
});
170191

@@ -182,7 +203,10 @@ test.describe('Solver CVODE tests', () => {
182203
const instance = document.instantiate();
183204

184205
assertIssues(loc, instance, [
185-
[loc.Issue.Type.ERROR, 'Task instance | CVODE: the absolute tolerance cannot be equal to -1.234. It must be greater or equal to 0.']
206+
[
207+
loc.Issue.Type.ERROR,
208+
'Task instance | CVODE: the absolute tolerance cannot be equal to -1.234. It must be greater or equal to 0.'
209+
]
186210
]);
187211
});
188212

tests/bindings/javascript/solver.forwardeuler.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ test.describe('Solver Forward Euler tests', () => {
5353

5454
const instance = document.instantiate();
5555

56-
assertIssues(loc, instance, [[loc.Issue.Type.ERROR, 'Task instance | Forward Euler: the step cannot be equal to 0. It must be greater than 0.']]);
56+
assertIssues(loc, instance, [
57+
[loc.Issue.Type.ERROR, 'Task instance | Forward Euler: the step cannot be equal to 0. It must be greater than 0.']
58+
]);
5759
});
5860

5961
test('Solve', () => {

tests/bindings/javascript/solver.fourthorderrungekutta.test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ test.describe('Solver Fourth-Order Runge-Kutta tests', () => {
5353

5454
const instance = document.instantiate();
5555

56-
assertIssues(loc, instance, [[loc.Issue.Type.ERROR, 'Task instance | Fourth-order Runge-Kutta: the step cannot be equal to 0. It must be greater than 0.']]);
56+
assertIssues(loc, instance, [
57+
[
58+
loc.Issue.Type.ERROR,
59+
'Task instance | Fourth-order Runge-Kutta: the step cannot be equal to 0. It must be greater than 0.'
60+
]
61+
]);
5762
});
5863

5964
test('Solve', () => {

tests/bindings/javascript/solver.heun.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ test.describe('Solver Heun tests', () => {
5353

5454
const instance = document.instantiate();
5555

56-
assertIssues(loc, instance, [[loc.Issue.Type.ERROR, 'Task instance | Heun: the step cannot be equal to 0. It must be greater than 0.']]);
56+
assertIssues(loc, instance, [
57+
[loc.Issue.Type.ERROR, 'Task instance | Heun: the step cannot be equal to 0. It must be greater than 0.']
58+
]);
5759
});
5860

5961
test('Solve', () => {

tests/bindings/javascript/solver.kinsol.test.js

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ test.describe('Solver KINSOL tests', () => {
5555
const instance = document.instantiate();
5656

5757
assertIssues(loc, instance, [
58-
[loc.Issue.Type.ERROR, 'Task instance | KINSOL: the maximum number of iterations cannot be equal to 0. It must be greater than 0.']
58+
[
59+
loc.Issue.Type.ERROR,
60+
'Task instance | KINSOL: the maximum number of iterations cannot be equal to 0. It must be greater than 0.'
61+
]
5962
]);
6063
});
6164

@@ -74,7 +77,10 @@ test.describe('Solver KINSOL tests', () => {
7477
const instance = document.instantiate();
7578

7679
assertIssues(loc, instance, [
77-
[loc.Issue.Type.ERROR, 'Task instance | KINSOL: the upper half-bandwidth cannot be equal to -1. It must be between 0 and 2.']
80+
[
81+
loc.Issue.Type.ERROR,
82+
'Task instance | KINSOL: the upper half-bandwidth cannot be equal to -1. It must be between 0 and 2.'
83+
]
7884
]);
7985
});
8086

@@ -93,7 +99,10 @@ test.describe('Solver KINSOL tests', () => {
9399
const instance = document.instantiate();
94100

95101
assertIssues(loc, instance, [
96-
[loc.Issue.Type.ERROR, 'Task instance | KINSOL: the upper half-bandwidth cannot be equal to 1. It must be between 0 and 0.']
102+
[
103+
loc.Issue.Type.ERROR,
104+
'Task instance | KINSOL: the upper half-bandwidth cannot be equal to 1. It must be between 0 and 0.'
105+
]
97106
]);
98107
});
99108

@@ -112,7 +121,10 @@ test.describe('Solver KINSOL tests', () => {
112121
const instance = document.instantiate();
113122

114123
assertIssues(loc, instance, [
115-
[loc.Issue.Type.ERROR, 'Task instance | KINSOL: the lower half-bandwidth cannot be equal to -1. It must be between 0 and 2.']
124+
[
125+
loc.Issue.Type.ERROR,
126+
'Task instance | KINSOL: the lower half-bandwidth cannot be equal to -1. It must be between 0 and 2.'
127+
]
116128
]);
117129
});
118130

@@ -131,7 +143,10 @@ test.describe('Solver KINSOL tests', () => {
131143
const instance = document.instantiate();
132144

133145
assertIssues(loc, instance, [
134-
[loc.Issue.Type.ERROR, 'Task instance | KINSOL: the lower half-bandwidth cannot be equal to 1. It must be between 0 and 0.']
146+
[
147+
loc.Issue.Type.ERROR,
148+
'Task instance | KINSOL: the lower half-bandwidth cannot be equal to 1. It must be between 0 and 0.'
149+
]
135150
]);
136151
});
137152

tests/bindings/javascript/solver.secondorderrungekutta.test.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ test.describe('Solver Second-Order Runge-Kutta tests', () => {
5353

5454
const instance = document.instantiate();
5555

56-
assertIssues(loc, instance, [[loc.Issue.Type.ERROR, 'Task instance | Second-order Runge-Kutta: the step cannot be equal to 0. It must be greater than 0.']]);
56+
assertIssues(loc, instance, [
57+
[
58+
loc.Issue.Type.ERROR,
59+
'Task instance | Second-order Runge-Kutta: the step cannot be equal to 0. It must be greater than 0.'
60+
]
61+
]);
5762
});
5863

5964
test('Solve', () => {

0 commit comments

Comments
 (0)