Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cassiopee
jalhyd
Commits
79f70324
Commit
79f70324
authored
Sep 09, 2019
by
Mathias Chouet
🍝
Browse files
Fix
#122
- refactored classes organization
parent
bde96c93
Changes
136
Hide whitespace changes
Inline
Side-by-side
spec/cond_distri.spec.ts
View file @
79f70324
// tslint:disable-next-line:no-reference
/// <reference path="../node_modules/@types/jasmine/index.d.ts" />
import
{
ConduiteDistrib
,
ConduiteDistribParams
}
from
"
../src/cond_distri
"
;
import
{
ConduiteDistrib
}
from
"
../src/cond_distri
"
;
import
{
ConduiteDistribParams
}
from
"
../src/cond_distri_params
"
;
import
{
checkResult
}
from
"
./test_func
"
;
describe
(
"
Class ConduiteDistrib:
"
,
()
=>
{
...
...
spec/iterator/array_reverse_iterator.spec.ts
View file @
79f70324
import
{
ArrayReverseIterator
}
from
"
../../src/util/iterator
"
;
import
{
ArrayReverseIterator
}
from
"
../../src/util/
array_reverse_
iterator
"
;
describe
(
"
array reverse iterator :
"
,
()
=>
{
it
(
"
reverse ( undefined )
"
,
()
=>
{
...
...
spec/iterator/map_iterator.spec.ts
View file @
79f70324
import
{
MapIterator
}
from
"
../../src/util/iterator
"
;
import
{
MapIterator
}
from
"
../../src/util/
map_
iterator
"
;
describe
(
"
param map iterator :
"
,
()
=>
{
it
(
"
sur undefined (1)
"
,
()
=>
{
...
...
spec/iterator/param_equation.spec.ts
View file @
79f70324
...
...
@@ -6,8 +6,8 @@
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import
{
ConduiteDistribParams
}
from
"
../../src/cond_distri
"
;
import
{
IParamDefinitionIterator
}
from
"
../../src/param/param
s-equation
"
;
import
{
ConduiteDistribParams
}
from
"
../../src/cond_distri
_params
"
;
import
{
IParamDefinitionIterator
}
from
"
../../src/param/param
_definition_iterator
"
;
import
{
CreateStructure
}
from
"
../../src/structure/factory_structure
"
;
import
{
ParallelStructure
}
from
"
../../src/structure/parallel_structure
"
;
import
{
ParallelStructureParams
}
from
"
../../src/structure/parallel_structure_params
"
;
...
...
spec/lechaptcalmon.spec.ts
View file @
79f70324
import
{
LechaptCalmon
,
LechaptCalmonParams
}
from
"
../src/lechaptcalmon
"
;
import
{
LechaptCalmon
}
from
"
../src/lechaptcalmon
"
;
import
{
LechaptCalmonParams
}
from
"
../src/lechaptcalmon_params
"
;
import
{
checkResult
}
from
"
./test_func
"
;
let
lechapt
:
LechaptCalmon
;
...
...
spec/macrorugo/macrorugo.spec.ts
View file @
79f70324
...
...
@@ -7,7 +7,8 @@
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import
{
ParamCalculability
,
ParamValueMode
}
from
"
../../src/index
"
;
import
{
MacroRugo
,
MacroRugoFlowType
,
MacrorugoParams
}
from
"
../../src/macrorugo/macrorugo
"
;
import
{
MacroRugo
,
MacroRugoFlowType
}
from
"
../../src/macrorugo/macrorugo
"
;
import
{
MacrorugoParams
}
from
"
../../src/macrorugo/macrorugo_params
"
;
import
{
checkResult
}
from
"
../test_func
"
;
/*
...
...
spec/macrorugo/macrorugo_compound.spec.ts
View file @
79f70324
import
{
CalculatorType
}
from
"
../../src/compute-node
"
;
import
{
MacroRugo
,
MacrorugoParams
}
from
"
../../src/macrorugo/macrorugo
"
;
import
{
MacroRugo
}
from
"
../../src/macrorugo/macrorugo
"
;
import
{
MacrorugoCompound
}
from
"
../../src/macrorugo/macrorugo_compound
"
;
import
{
MacrorugoParams
}
from
"
../../src/macrorugo/macrorugo_params
"
;
import
{
Props
}
from
"
../../src/props
"
;
import
{
Session
}
from
"
../../src/session
"
;
import
{
compareTwoResults
}
from
"
../test_func
"
;
...
...
spec/pab/cloison_aval.spec.ts
View file @
79f70324
import
{
CloisonAval
,
ParallelStructureParams
}
from
"
../../src/pab/cloison_aval
"
;
import
{
CloisonAval
}
from
"
../../src/pab/cloison_aval
"
;
import
{
CloisonsAvalParams
}
from
"
../../src/pab/cloison_aval_params
"
;
import
{
StructureVanLevLarinier
,
StructureVanLevParams
}
from
"
../../src/structure/structure_vanlev
"
;
import
{
StructureVanLevVillemonte
}
from
"
../../src/structure/structure_vanlev
"
;
import
{
StructureVanLevLarinier
}
from
"
../../src/structure/structure_vanlev_larinier
"
;
import
{
StructureVanLevParams
}
from
"
../../src/structure/structure_vanlev_params
"
;
import
{
StructureVanLevVillemonte
}
from
"
../../src/structure/structure_vanlev_villemonte
"
;
import
{
MessageCode
}
from
"
../../src/util/message
"
;
function
getCloisonAvalTest
(
Q
:
number
,
Z2
:
number
):
CloisonAval
{
...
...
spec/pab/cloisons_jalhyd127.spec.ts
View file @
79f70324
import
{
Nub
}
from
"
../../src/nub
"
;
import
{
Cloisons
}
from
"
../../src/pab/cloisons
"
;
import
{
Session
}
from
"
../../src/session
"
;
...
...
spec/pab/pab.spec.ts
View file @
79f70324
...
...
@@ -9,11 +9,13 @@
import
{
ParamValueMode
,
Session
}
from
"
../../src/index
"
;
import
{
CloisonAval
}
from
"
../../src/pab/cloison_aval
"
;
import
{
CloisonsAvalParams
}
from
"
../../src/pab/cloison_aval_params
"
;
import
{
Cloisons
,
CloisonsParams
}
from
"
../../src/pab/cloisons
"
;
import
{
Pab
,
PabParams
}
from
"
../../src/pab/pab
"
;
import
{
ParallelStructureParams
}
from
"
../../src/structure/parallel_structure
"
;
import
{
Cloisons
}
from
"
../../src/pab/cloisons
"
;
import
{
CloisonsParams
}
from
"
../../src/pab/cloisons_params
"
;
import
{
Pab
}
from
"
../../src/pab/pab
"
;
import
{
PabParams
}
from
"
../../src/pab/pab_params
"
;
import
{
RectangularStructureParams
}
from
"
../../src/structure/rectangular_structure_params
"
;
import
{
StructureVanLevParams
,
StructureVanLevVillemonte
}
from
"
../../src/structure/structure_vanlev
"
;
import
{
StructureVanLevParams
}
from
"
../../src/structure/structure_vanlev_params
"
;
import
{
StructureVanLevVillemonte
}
from
"
../../src/structure/structure_vanlev_villemonte
"
;
import
{
StructureWeirSubmergedLarinier
}
from
"
../../src/structure/structure_weir_submerged_larinier
"
;
import
{
StructureWeirVillemonte
}
from
"
../../src/structure/structure_weir_villemonte
"
;
import
{
MessageCode
}
from
"
../../src/util/message
"
;
...
...
spec/pab/pab_chute.spec.ts
View file @
79f70324
import
{
PabChute
,
PabChuteParams
}
from
"
../../src/pab/pab_chute
"
;
import
{
PabChute
}
from
"
../../src/pab/pab_chute
"
;
import
{
PabChuteParams
}
from
"
../../src/pab/pab_chute_params
"
;
import
{
checkResult
}
from
"
../test_func
"
;
function
pabChuteTest
(
varTest
:
string
,
expected
:
number
)
{
...
...
spec/pab/pab_dimension.spec.ts
View file @
79f70324
import
{
PabDimension
,
PabDimensionParams
}
from
"
../../src/pab/pab_dimension
"
;
import
{
PabDimension
}
from
"
../../src/pab/pab_dimension
"
;
import
{
PabDimensionParams
}
from
"
../../src/pab/pab_dimensions_params
"
;
import
{
checkResult
}
from
"
../test_func
"
;
function
pabDimensionTest
(
varTest
:
string
)
{
...
...
spec/pab/pab_nombre.spec.ts
View file @
79f70324
import
{
PabNombre
,
PabNombreParams
}
from
"
../../src/pab/pab_nombre
"
;
import
{
PabNombre
}
from
"
../../src/pab/pab_nombre
"
;
import
{
PabNombreParams
}
from
"
../../src/pab/pab_nombre_params
"
;
import
{
checkResult
}
from
"
../test_func
"
;
function
pabNombreTest
(
varTest
:
string
,
expected
:
number
)
{
...
...
spec/pab/pab_puissance.spec.ts
View file @
79f70324
// tslint:disable-next-line:no-reference
/// <reference path="../../node_modules/@types/jasmine/index.d.ts" />
import
{
PabPuissance
,
PabPuissanceParams
}
from
"
../../src/pab/pab_puissance
"
;
import
{
PabPuissance
}
from
"
../../src/pab/pab_puissance
"
;
import
{
PabPuissanceParams
}
from
"
../../src/pab/pab_puissance_params
"
;
import
{
checkResult
}
from
"
../test_func
"
;
function
PabPuissanceTest
(
varTest
:
string
)
{
...
...
spec/param/param_modes.spec.ts
View file @
79f70324
import
{
cSnTrapez
,
LinkedValue
,
Nub
,
ParallelStructure
,
ParallelStructureParams
,
ParamCalculability
,
ParamsSectionTrapez
,
ParamValueMode
,
SectionParametree
,
ParamValueMode
,
SectionParametree
,
Session
}
from
"
../../src/index
"
;
import
{
Cloisons
}
from
"
../../src/pab/cloisons
"
;
import
{
CloisonsParams
}
from
"
../../src/pab/cloisons_params
"
;
import
{
RegimeUniforme
}
from
"
../../src/regime_uniforme
"
;
import
{
cSnCirc
,
ParamsSectionCirc
}
from
"
../../src/section/section_circulaire
"
;
import
{
Dever
,
DeverParams
}
from
"
../../src/structure/dever
"
;
import
{
cSnCirc
}
from
"
../../src/section/section_circulaire
"
;
import
{
ParamsSectionCirc
}
from
"
../../src/section/section_circulaire_params
"
;
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
{
LoiDebit
}
from
"
../../src/structure/structure_props
"
;
...
...
spec/param/param_multivar.spec.ts
View file @
79f70324
import
{
CreateStructure
,
ExtensionStrategy
,
LoiDebit
,
ParallelStructure
,
ParallelStructureParams
,
ParamValueMode
,
Session
,
Structure
}
from
"
../../src/index
"
;
import
{
RectangularStructureParams
}
from
"
../../src/structure/structure_
cem88d
"
;
import
{
RectangularStructureParams
}
from
"
../../src/structure/
rectangular_
structure_
params
"
;
let
prms1
:
ParallelStructureParams
;
let
nub1
:
ParallelStructure
;
...
...
spec/regime_uniforme/regime_uniforme_circ.spec.ts
View file @
79f70324
...
...
@@ -2,9 +2,10 @@
/// <reference path="../../node_modules/@types/jasmine/index.d.ts" />
import
{
RegimeUniforme
}
from
"
../../src/regime_uniforme
"
;
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
,
equalEpsilon
}
from
"
../test_func
"
;
import
{
checkResult
}
from
"
../test_func
"
;
describe
(
"
Class RegimeUniforme / section circulaire :
"
,
()
=>
{
describe
(
"
pas de débordement :
"
,
()
=>
{
...
...
spec/regime_uniforme/regime_uniforme_puissance.spec.ts
View file @
79f70324
...
...
@@ -7,10 +7,11 @@
// import { describe, expect, it, xdescribe } from "../mock_jasmine";
import
{
RegimeUniforme
}
from
"
../../src/regime_uniforme
"
;
import
{
cSnPuiss
,
ParamsSectionPuiss
}
from
"
../../src/section/section_puissance
"
;
import
{
cSnPuiss
}
from
"
../../src/section/section_puissance
"
;
import
{
ParamsSectionPuiss
}
from
"
../../src/section/section_puissance_params
"
;
import
{
MessageCode
}
from
"
../../src/util/message
"
;
import
{
Result
}
from
"
../../src/util/result
"
;
import
{
precDigits
,
precDist
}
from
"
../test_config
"
;
import
{
precDist
}
from
"
../test_config
"
;
import
{
checkResult
}
from
"
../test_func
"
;
describe
(
"
Class RegimeUniforme / section puissance :
"
,
()
=>
{
...
...
spec/regime_uniforme/regime_uniforme_rect.spec.ts
View file @
79f70324
...
...
@@ -7,8 +7,8 @@
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import
{
RegimeUniforme
}
from
"
../../src/regime_uniforme
"
;
import
{
cSnRectang
,
ParamsSectionRectang
}
from
"
../../src/section/section_rectang
"
;
import
{
Result
}
from
"
../../src/util/result
"
;
import
{
cSnRectang
}
from
"
../../src/section/section_rectang
"
;
import
{
ParamsSectionRectang
}
from
"
../../src/section/section_rectang_params
"
;
import
{
precDist
}
from
"
../test_config
"
;
import
{
checkResult
,
equalEpsilon
}
from
"
../test_func
"
;
...
...
spec/regime_uniforme/regime_uniforme_trapeze.spec.ts
View file @
79f70324
...
...
@@ -2,8 +2,8 @@
/// <reference path="../../node_modules/@types/jasmine/index.d.ts" />
import
{
RegimeUniforme
}
from
"
../../src/regime_uniforme
"
;
import
{
cSnTrapez
,
ParamsSectionTrapez
}
from
"
../../src/section/section_trapez
"
;
import
{
Result
}
from
"
../../src/util/result
"
;
import
{
cSnTrapez
}
from
"
../../src/section/section_trapez
"
;
import
{
ParamsSectionTrapez
}
from
"
../../src/section/section_trapez_params
"
;
import
{
precDist
}
from
"
../test_config
"
;
import
{
checkResult
,
equalEpsilon
}
from
"
../test_func
"
;
...
...
Prev
1
2
3
4
5
…
7
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment