// the one the Line is in, erase |form|'s type with |as any| to
// keep TypeScript happy.
constructor(form: FormClass<F>, line: L, description?: string, fallback?: T) {
- super(description || `Reference ${form.name}-${line}`);
+ super(description || `Reference ${form.name}@${line}`);
this._form = form;
this._line = line;
this._fallback = fallback;
private _line: L;
constructor(form: FormClass<F>, line: L, description?: string) {
- super(description || `Accumulator ${form.name}-${line}`);
+ super(description || `Accumulator ${form.name}@${line}`);
this._form = form;
this._line = line;
}
test('input line', () => {
f.getValue(tr, 'i1');
const trace = getLastTraceList();
- expect(trace).toStrictEqual([ [ 'TF-i1 (Input from name)', 'TF input: name' ] ]);
+ expect(trace).toStrictEqual([ [ 'TF@i1 (Input from name)', 'TF input: name' ] ]);
});
test('computed line via input', () => {
f.getValue(tr, 'c1');
const trace = getLastTraceList();
- expect(trace).toStrictEqual([ [ 'TF-c1', 'TF input: name' ] ]);
+ expect(trace).toStrictEqual([ [ 'TF@c1', 'TF input: name' ] ]);
});
test('computed line via input line', () => {
f.getValue(tr, 'c2');
const trace = getLastTraceList();
expect(trace).toStrictEqual([
- [ 'TF-c2', 'TF-i2 (Input from value)' ],
- [ 'TF-i2 (Input from value)', 'TF input: value' ]
+ [ 'TF@c2', 'TF@i2 (Input from value)' ],
+ [ 'TF@i2 (Input from value)', 'TF input: value' ]
]);
});
f.getValue(tr, 'r2');
const trace = getLastTraceList();
expect(trace).toStrictEqual([
- [ 'TF-r2 (Reference TestForm-c2)', 'TF-c2' ],
- [ 'TF-c2', 'TF-i2 (Input from value)' ],
- [ 'TF-i2 (Input from value)', 'TF input: value' ]
+ [ 'TF@r2 (Reference TestForm@c2)', 'TF@c2' ],
+ [ 'TF@c2', 'TF@i2 (Input from value)' ],
+ [ 'TF@i2 (Input from value)', 'TF input: value' ]
]);
});
});