Skip to content

Commit be30da4

Browse files
committed
single-src: assert production has the same value as calculatedProduction
1 parent fb1df73 commit be30da4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/single-source/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
import assert from 'node:assert';
2+
13
export class ProductionPlan {
24
constructor() {
35
this._adjustments = [];
46
this._production = 0;
57
}
68

79
get production() {
10+
assert(this._production === this.calculatedProduction);
811
return this._production;
912
}
1013

0 commit comments

Comments
 (0)