Commit ba269f9f authored by Dorchies David's avatar Dorchies David
Browse files

Corrige bug introduit dans 0ce46e46 (suppression de Result:get name)

parent 0ce46e46
......@@ -14,8 +14,9 @@ function testBaseParamValues(vals: number[]): BaseParam {
p.paramValues.setValues(vals);
let n = 0;
for (const v of p.valuesIterator)
for (const v of p.valuesIterator) {
expect(v).toEqual(vals[n++]);
}
expect(n).toEqual(vals.length);
......@@ -25,12 +26,14 @@ function testBaseParamValues(vals: number[]): BaseParam {
function testResultValues(vals: number[]): Result {
const r: Result = new Result();
for (const v of vals)
for (const v of vals) {
r.addResultElement(new ResultElement(v));
}
let n = 0;
for (const v of r.valuesIterator)
for (const v of r.valuesIterator) {
expect(v).toEqual(vals[n++]);
}
expect(n).toEqual(vals.length);
......@@ -40,12 +43,14 @@ function testResultValues(vals: number[]): Result {
function testExtraResultsValues(vals: number[]): ExtraResults {
const ers: ExtraResults = new ExtraResults("aa");
for (const v of vals)
for (const v of vals) {
ers.addValue(v);
}
let n = 0;
for (const v of ers.valuesIterator)
for (const v of ers.valuesIterator) {
expect(v).toEqual(vals[n++]);
}
expect(n).toEqual(vals.length);
......
......@@ -43,6 +43,10 @@ export class Result extends JalhydObject implements NamedIterableValues {
}
}
public get name(): string {
return this._name;
}
public set name(n: string) {
this._name = n;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment