Commit 79f70324 authored by Mathias Chouet's avatar Mathias Chouet 🍝
Browse files

Fix #122 - refactored classes organization

parent bde96c93
......@@ -7,8 +7,10 @@
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import { MethodeResolution } from "../../src/remous/methode-resolution";
import { CourbeRemous, CourbeRemousParams } from "../../src/remous/remous";
import { cSnRectang, ParamsSectionRectang } from "../../src/section/section_rectang";
import { CourbeRemous } from "../../src/remous/remous";
import { CourbeRemousParams } from "../../src/remous/remous_params";
import { cSnRectang } from "../../src/section/section_rectang";
import { ParamsSectionRectang } from "../../src/section/section_rectang_params";
import { cLog } from "../../src/util/log";
import { Message, MessageCode } from "../../src/util/message";
import { Result } from "../../src/util/result";
......
import { MethodeResolution } from "../../src/remous/methode-resolution";
import { CourbeRemous, CourbeRemousParams } from "../../src/remous/remous";
import { cSnRectang, ParamsSectionRectang } from "../../src/section/section_rectang";
import { CourbeRemous } from "../../src/remous/remous";
import { CourbeRemousParams } from "../../src/remous/remous_params";
import { cSnRectang } from "../../src/section/section_rectang";
import { ParamsSectionRectang } from "../../src/section/section_rectang_params";
import { cLog } from "../../src/util/log";
import { Message, MessageCode } from "../../src/util/message";
import { precDist } from "../test_config";
......
import { MethodeResolution } from "../../src/remous/methode-resolution";
import { CourbeRemous, CourbeRemousParams } from "../../src/remous/remous";
import { cSnRectang, ParamsSectionRectang } from "../../src/section/section_rectang";
import { CourbeRemous } from "../../src/remous/remous";
import { CourbeRemousParams } from "../../src/remous/remous_params";
import { cSnRectang } from "../../src/section/section_rectang";
import { ParamsSectionRectang } from "../../src/section/section_rectang_params";
import { cLog } from "../../src/util/log";
import { Message, MessageCode } from "../../src/util/message";
import { precDist } from "../test_config";
......
import { MethodeResolution } from "../../src/remous/methode-resolution";
import { CourbeRemous, CourbeRemousParams } from "../../src/remous/remous";
import { cSnRectang, ParamsSectionRectang } from "../../src/section/section_rectang";
import { CourbeRemous } from "../../src/remous/remous";
import { CourbeRemousParams } from "../../src/remous/remous_params";
import { cSnRectang } from "../../src/section/section_rectang";
import { ParamsSectionRectang } from "../../src/section/section_rectang_params";
import { cLog } from "../../src/util/log";
import { Message, MessageCode } from "../../src/util/message";
import { precDist } from "../test_config";
......
......@@ -7,8 +7,10 @@
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import { MethodeResolution } from "../../src/remous/methode-resolution";
import { CourbeRemous, CourbeRemousParams } from "../../src/remous/remous";
import { cSnRectang, ParamsSectionRectang } from "../../src/section/section_rectang";
import { CourbeRemous } from "../../src/remous/remous";
import { CourbeRemousParams } from "../../src/remous/remous_params";
import { cSnRectang } from "../../src/section/section_rectang";
import { ParamsSectionRectang } from "../../src/section/section_rectang_params";
import { cLog } from "../../src/util/log";
import { Message, MessageCode } from "../../src/util/message";
import { precDist } from "../test_config";
......
import { MethodeResolution } from "../../src/remous/methode-resolution";
import { CourbeRemous, CourbeRemousParams } from "../../src/remous/remous";
import { cSnRectang, ParamsSectionRectang } from "../../src/section/section_rectang";
import { CourbeRemous } from "../../src/remous/remous";
import { CourbeRemousParams } from "../../src/remous/remous_params";
import { cSnRectang } from "../../src/section/section_rectang";
import { ParamsSectionRectang } from "../../src/section/section_rectang_params";
import { cLog } from "../../src/util/log";
import { Message, MessageCode } from "../../src/util/message";
import { precDist } from "../test_config";
import { compareExtraResult, compareLog, equalEpsilon, extraResultLength } from "../test_func";
import { compareExtraResult, compareLog, extraResultLength } from "../test_func";
/*
cas 1 :
......
......@@ -7,8 +7,10 @@
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import { MethodeResolution } from "../../src/remous/methode-resolution";
import { CourbeRemous, CourbeRemousParams } from "../../src/remous/remous";
import { cSnTrapez, ParamsSectionTrapez } from "../../src/section/section_trapez";
import { CourbeRemous } from "../../src/remous/remous";
import { CourbeRemousParams } from "../../src/remous/remous_params";
import { cSnTrapez } from "../../src/section/section_trapez";
import { ParamsSectionTrapez } from "../../src/section/section_trapez_params";
import { precDist } from "../test_config";
import { compareExtraResult } from "../test_func";
......
......@@ -8,7 +8,8 @@
import { ParamDefinition } from "../../src/param/param-definition";
import { SectionParametree } from "../../src/section/section_parametree";
import { cSnRectang, ParamsSectionRectang } from "../../src/section/section_rectang";
import { cSnRectang } from "../../src/section/section_rectang";
import { ParamsSectionRectang } from "../../src/section/section_rectang_params";
import { precDist } from "../test_config";
function createSection(prec: number) {
......
import { cSnCirc, ParamsSectionCirc } from "../../src/section/section_circulaire";
import { cSnCirc } from "../../src/section/section_circulaire";
import { ParamsSectionCirc } from "../../src/section/section_circulaire_params";
import { precDist } from "../test_config";
import { checkResult } from "../test_func";
......
import { cSnCirc, ParamsSectionCirc } from "../../src/section/section_circulaire";
import { cSnCirc } from "../../src/section/section_circulaire";
import { ParamsSectionCirc } from "../../src/section/section_circulaire_params";
import { precDist } from "../test_config";
import { checkResult } from "../test_func";
......
import { cSnPuiss, ParamsSectionPuiss } from "../../src/section/section_puissance";
import { cSnPuiss } from "../../src/section/section_puissance";
import { ParamsSectionPuiss } from "../../src/section/section_puissance_params";
import { precDist } from "../test_config";
import { checkResult } from "../test_func";
......
import { cSnPuiss, ParamsSectionPuiss } from "../../src/section/section_puissance";
import { cSnPuiss } from "../../src/section/section_puissance";
import { ParamsSectionPuiss } from "../../src/section/section_puissance_params";
import { precDist } from "../test_config";
import { checkResult } from "../test_func";
......
// tslint:disable:no-console
import { cSnRectang, ParamsSectionRectang } from "../../src/section/section_rectang";
import { cSnRectang } from "../../src/section/section_rectang";
import { ParamsSectionRectang } from "../../src/section/section_rectang_params";
import { MessageCode } from "../../src/util/message";
import { Result } from "../../src/util/result";
......
import { cSnRectang, ParamsSectionRectang } from "../../src/section/section_rectang";
import { cSnRectang } from "../../src/section/section_rectang";
import { ParamsSectionRectang } from "../../src/section/section_rectang_params";
import { precDist } from "../test_config";
import { checkResult } from "../test_func";
......
import { cSnRectang, ParamsSectionRectang } from "../../src/section/section_rectang";
import { cSnRectang } from "../../src/section/section_rectang";
import { ParamsSectionRectang } from "../../src/section/section_rectang_params";
import { precDist } from "../test_config";
import { checkResult } from "../test_func";
......
import { cSnTrapez, ParamsSectionTrapez } from "../../src/section/section_trapez";
import { cSnTrapez } from "../../src/section/section_trapez";
import { ParamsSectionTrapez } from "../../src/section/section_trapez_params";
import { precDist } from "../test_config";
import { checkResult } from "../test_func";
......
import { cSnTrapez, ParamsSectionTrapez } from "../../src/section/section_trapez";
import { cSnTrapez } from "../../src/section/section_trapez";
import { ParamsSectionTrapez } from "../../src/section/section_trapez_params";
import { precDist } from "../test_config";
import { checkResult } from "../test_func";
......
import { ConduiteDistrib, ConduiteDistribParams } from "../../src/cond_distri";
import { ConduiteDistrib } from "../../src/cond_distri";
import { ConduiteDistribParams } from "../../src/cond_distri_params";
import { Nub, ParallelStructure, ParamDefinition, ParamValueMode, SectionParametree, Session } from "../../src/index";
import { MacroRugo } from "../../src/macrorugo/macrorugo";
import { Cloisons } from "../../src/pab/cloisons";
import { CloisonsParams } from "../../src/pab/cloisons_params";
import { PabChute, PabChuteParams } from "../../src/pab/pab_chute";
import { PabChute } from "../../src/pab/pab_chute";
import { PabChuteParams } from "../../src/pab/pab_chute_params";
import { RegimeUniforme } from "../../src/regime_uniforme";
import { MethodeResolution } from "../../src/remous/methode-resolution";
import { CourbeRemous, CourbeRemousParams } from "../../src/remous/remous";
import { cSnCirc, ParamsSectionCirc } from "../../src/section/section_circulaire";
import { cSnTrapez, ParamsSectionTrapez } from "../../src/section/section_trapez";
import { Dever, DeverParams } from "../../src/structure/dever";
import { CourbeRemous } from "../../src/remous/remous";
import { CourbeRemousParams } from "../../src/remous/remous_params";
import { cSnCirc } from "../../src/section/section_circulaire";
import { ParamsSectionCirc } from "../../src/section/section_circulaire_params";
import { cSnTrapez } from "../../src/section/section_trapez";
import { ParamsSectionTrapez } from "../../src/section/section_trapez_params";
import { Dever } from "../../src/structure/dever";
import { DeverParams } from "../../src/structure/dever_params";
import { CreateStructure } from "../../src/structure/factory_structure";
import { RectangularStructure, RectangularStructureParams } from "../../src/structure/rectangular_structure";
import { RectangularStructure } from "../../src/structure/rectangular_structure";
import { RectangularStructureParams } from "../../src/structure/rectangular_structure_params";
import { LoiDebit } from "../../src/structure/structure_props";
import {
StructureWeirSubmergedLarinier,
......
......@@ -6,7 +6,8 @@
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import { Dever, DeverParams } from "../../src/structure/dever";
import { Dever } from "../../src/structure/dever";
import { DeverParams } from "../../src/structure/dever_params";
import { CreateStructure } from "../../src/structure/factory_structure";
import { LoiDebit } from "../../src/structure/structure_props";
......
import { Session } from "../../src/session";
import { checkResultConsistency, isFiniteNumber } from "../test_func";
import { checkResultConsistency } from "../test_func";
describe("Dever", () => {
describe("jalhyd#123", () => {
......
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