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
9d62c9d5
Commit
9d62c9d5
authored
Sep 09, 2019
by
Mathias Chouet
🍝
Browse files
Cleaned code
parent
79f70324
Changes
48
Hide whitespace changes
Inline
Side-by-side
spec/fuzzing.spec.ts
View file @
9d62c9d5
...
...
@@ -9,7 +9,7 @@ import { SectionNub } from "../src/section/section_nub";
import
{
Session
}
from
"
../src/session
"
;
import
{
CreateStructure
}
from
"
../src/structure/factory_structure
"
;
import
{
ParallelStructure
}
from
"
../src/structure/parallel_structure
"
;
import
{
checkResultConsistency
,
isFiniteNumber
,
SetJasmineCurrentSpec
}
from
"
./test_func
"
;
import
{
checkResultConsistency
,
SetJasmineCurrentSpec
}
from
"
./test_func
"
;
/**
* Fuzzing or fuzz testing is an automated software testing technique that involves providing invalid,
...
...
spec/iterator/named_iterable_value.spec.ts
View file @
9d62c9d5
import
{
ParamDefinition
,
ParamDomainValue
,
Result
,
ResultElement
}
from
"
../../src/index
"
;
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
function
testParamDefinitionValues
(
vals
:
number
[]):
ParamDefinition
{
const
p
:
ParamDefinition
=
new
ParamDefinition
(
null
,
"
aa
"
,
ParamDomainValue
.
ANY
);
...
...
spec/iterator/param_equation.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import
{
ConduiteDistribParams
}
from
"
../../src/cond_distri_params
"
;
import
{
IParamDefinitionIterator
}
from
"
../../src/param/param_definition_iterator
"
;
import
{
CreateStructure
}
from
"
../../src/structure/factory_structure
"
;
...
...
spec/macrorugo/macrorugo.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import
{
ParamCalculability
,
ParamValueMode
}
from
"
../../src/index
"
;
import
{
MacroRugo
,
MacroRugoFlowType
}
from
"
../../src/macrorugo/macrorugo
"
;
import
{
MacrorugoParams
}
from
"
../../src/macrorugo/macrorugo_params
"
;
...
...
spec/pab/cloisons.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import
{
CreateStructure
,
LoiDebit
}
from
"
../../src/index
"
;
import
{
Cloisons
}
from
"
../../src/pab/cloisons
"
;
import
{
CloisonsParams
}
from
"
../../src/pab/cloisons_params
"
;
...
...
spec/pab/pab.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import
{
ParamValueMode
,
Session
}
from
"
../../src/index
"
;
import
{
CloisonAval
}
from
"
../../src/pab/cloison_aval
"
;
import
{
CloisonsAvalParams
}
from
"
../../src/pab/cloison_aval_params
"
;
...
...
spec/param/param_modes.spec.ts
View file @
9d62c9d5
...
...
@@ -14,14 +14,6 @@ import { DeverParams } from "../../src/structure/dever_params";
import
{
CreateStructure
}
from
"
../../src/structure/factory_structure
"
;
import
{
LoiDebit
}
from
"
../../src/structure/structure_props
"
;
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
let
nub1
:
RegimeUniforme
;
let
prm1
:
ParamsSectionCirc
;
let
nub2
:
ParallelStructure
;
...
...
spec/regime_uniforme/regime_uniforme_puissance.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe } from "../mock_jasmine";
import
{
RegimeUniforme
}
from
"
../../src/regime_uniforme
"
;
import
{
cSnPuiss
}
from
"
../../src/section/section_puissance
"
;
import
{
ParamsSectionPuiss
}
from
"
../../src/section/section_puissance_params
"
;
...
...
spec/regime_uniforme/regime_uniforme_rect.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import
{
RegimeUniforme
}
from
"
../../src/regime_uniforme
"
;
import
{
cSnRectang
}
from
"
../../src/section/section_rectang
"
;
import
{
ParamsSectionRectang
}
from
"
../../src/section/section_rectang_params
"
;
...
...
spec/remous/remous_rect_euler_pentefaible.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import
{
MethodeResolution
}
from
"
../../src/remous/methode-resolution
"
;
import
{
CourbeRemous
}
from
"
../../src/remous/remous
"
;
import
{
CourbeRemousParams
}
from
"
../../src/remous/remous_params
"
;
...
...
spec/remous/remous_rect_trapezes_pentefaible.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import
{
MethodeResolution
}
from
"
../../src/remous/methode-resolution
"
;
import
{
CourbeRemous
}
from
"
../../src/remous/remous
"
;
import
{
CourbeRemousParams
}
from
"
../../src/remous/remous_params
"
;
...
...
spec/remous/remous_trapez.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import
{
MethodeResolution
}
from
"
../../src/remous/methode-resolution
"
;
import
{
CourbeRemous
}
from
"
../../src/remous/remous
"
;
import
{
CourbeRemousParams
}
from
"
../../src/remous/remous_params
"
;
...
...
spec/section_param/section_param.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import
{
ParamDefinition
}
from
"
../../src/param/param-definition
"
;
import
{
SectionParametree
}
from
"
../../src/section/section_parametree
"
;
import
{
cSnRectang
}
from
"
../../src/section/section_rectang
"
;
...
...
spec/session/serialisation.spec.ts
View file @
9d62c9d5
...
...
@@ -25,14 +25,6 @@ import {
}
from
"
../../src/structure/structure_weir_submerged_larinier
"
;
import
{
sessionSpaghetti
}
from
"
./serialisation.session.spaghetti
"
;
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
function
createEnv
()
{
// create complex session
const
dever
:
Dever
=
new
Dever
(
...
...
spec/structure/dever.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import
{
Dever
}
from
"
../../src/structure/dever
"
;
import
{
DeverParams
}
from
"
../../src/structure/dever_params
"
;
import
{
CreateStructure
}
from
"
../../src/structure/factory_structure
"
;
...
...
spec/structure/functions.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
*/
// import { describe, expect, it, xdescribe } from "../mock_jasmine";
import
{
CreateStructure
,
EnumEx
,
MessageCode
}
from
"
../../src/index
"
;
import
{
ParamCalculability
,
ParamDefinition
}
from
"
../../src/param/param-definition
"
;
import
{
ParallelStructure
}
from
"
../../src/structure/parallel_structure
"
;
...
...
spec/structure/parallel_structure.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe, xit } from "../mock_jasmine";
import
{
CalculatorType
}
from
"
../../src/compute-node
"
;
import
{
Props
}
from
"
../../src/props
"
;
import
{
Session
}
from
"
../../src/session
"
;
...
...
spec/structure/structure.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier test_func.ts
*/
// import { describe, expect, it, xdescribe } from "../mock_jasmine";
import
{
StructureFlowMode
,
StructureFlowRegime
}
from
"
../../src/structure/structure
"
;
import
{
checkResult
}
from
"
../test_func
"
;
import
{
CreateStructTest
,
StructureTest
}
from
"
./structure_test
"
;
...
...
spec/structure/structure_cem88d.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier rectangular_structure.ts
*/
// import { describe, expect, it, xdescribe } from "../mock_jasmine";
import
{
RectangularStructureParams
}
from
"
../../src/structure/rectangular_structure_params
"
;
import
{
StructureFlowMode
,
StructureFlowRegime
}
from
"
../../src/structure/structure
"
;
import
{
StructureGateCem88d
}
from
"
../../src/structure/structure_gate_cem88d
"
;
...
...
spec/structure/structure_cem88v.spec.ts
View file @
9d62c9d5
/**
* IMPORTANT !
* Décommenter temporairement la ligne suivante (import { } from "./mock_jasmine")
* Pour exécuter ce code dans le débugger.
* Faire de même avec le fichier rectangular_structure.ts
*/
// import { describe, expect, it, xdescribe } from "../mock_jasmine";
import
{
CreateStructure
,
LoiDebit
,
MessageCode
,
Result
}
from
"
../../src/index
"
;
import
{
RectangularStructureParams
}
from
"
../../src/structure/rectangular_structure_params
"
;
import
{
StructureFlowMode
,
StructureFlowRegime
}
from
"
../../src/structure/structure
"
;
...
...
Prev
1
2
3
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