Commit b37ddf63 authored by Grand Francois's avatar Grand Francois
Browse files

fix(test): some tests fail due to new submergence error

ref #302
Showing with 7 additions and 7 deletions
+7 -7
...@@ -27,7 +27,7 @@ function getCloisonsTest(): Cloisons { ...@@ -27,7 +27,7 @@ function getCloisonsTest(): Cloisons {
const cloisons: Cloisons = getEmptyCloisonsTest(); const cloisons: Cloisons = getEmptyCloisonsTest();
cloisons.addChild(CreateStructure(LoiDebit.WeirSubmergedLarinier)); cloisons.addChild(CreateStructure(LoiDebit.WeirSubmergedLarinier));
cloisons.calculatedParam = cloisons.prms.Q; cloisons.calculatedParam = cloisons.prms.Q;
cloisons.structures[0].prms.h1.singleValue = 1; cloisons.structures[0].prms.h1.singleValue = 2;
return cloisons; return cloisons;
} }
...@@ -37,11 +37,11 @@ describe("Class Cloisons: ", () => { ...@@ -37,11 +37,11 @@ describe("Class Cloisons: ", () => {
beforeEach(() => { beforeEach(() => {
c = getCloisonsTest(); c = getCloisonsTest();
}); });
it("vCalc should return 0.47", () => { it("vCalc should return 0.94", () => {
expect(c.CalcSerie().vCalc).toBeCloseTo(0.47, 3); expect(c.CalcSerie().vCalc).toBeCloseTo(0.94, 3);
}); });
it("extraResults.PV should return 230.444", () => { it("extraResults.PV should return 460.887", () => {
expect(c.CalcSerie().values.PV).toBeCloseTo(230.444, 1); expect(c.CalcSerie().values.PV).toBeCloseTo(460.887, 1);
}); });
it("ZRMB should be 100.5", () => { it("ZRMB should be 100.5", () => {
c.CalcSerie(); c.CalcSerie();
......
...@@ -109,8 +109,8 @@ export function CreateStructure(loiDebit: LoiDebit, parentNub?: ParallelStructur ...@@ -109,8 +109,8 @@ export function CreateStructure(loiDebit: LoiDebit, parentNub?: ParallelStructur
if (!nullParams) { if (!nullParams) {
rectStructPrms.L.singleValue = 0.2; rectStructPrms.L.singleValue = 0.2;
rectStructPrms.CdWSL.singleValue = 0.75; rectStructPrms.CdWSL.singleValue = 0.75;
rectStructPrms.ZDV.singleValue = 101; rectStructPrms.ZDV.singleValue = 100;
rectStructPrms.h1.singleValue = 1; rectStructPrms.h1.singleValue = 2;
} }
ret = new StructureWeirSubmergedLarinier(rectStructPrms, dbg); ret = new StructureWeirSubmergedLarinier(rectStructPrms, dbg);
break; break;
......
Supports Markdown
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