Skip to content
Snippets Groups Projects
Commit ad03d9d4 authored by David Dorchies's avatar David Dorchies :zany_face:
Browse files

test: test Z1 should be undefined with empty fiels option activated

Refs #355
parent 867938cc
No related branches found
No related tags found
No related merge requests found
......@@ -137,5 +137,20 @@ describe("Class Cloisons: ", () => {
expect(cloisons.structures[0].result.log.messages[1].code).toBe(MessageCode.WARNING_NEGATIVE_SILL);
});
});
describe("jalhyd#355", () => {
it("Z1 should be null", () => {
const cl = new Cloisons(
new CloisonsParams(
1.5, // Débit total (m3/s)
102, // Cote de l'eau amont (m)
10, // Longueur des bassins (m)
1, // Largeur des bassins (m)
1, // Profondeur moyenne (m)
0.5, // Hauteur de chute (m)
true
)
);
expect(cl.prms.Z1.v).toBe(undefined);
});
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment