Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Cpp
Commits
61e15399
Commit
61e15399
authored
Oct 18, 2017
by
Sascha Niklas Schneiders
Browse files
updated tests
parent
bda8c770
Changes
8
Hide whitespace changes
Inline
Side-by-side
src/test/java/de/monticore/lang/monticar/generator/ThreadingOptimizerTest.java
deleted
100644 → 0
View file @
bda8c770
package
de.monticore.lang.monticar.generator
;
import
de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.ExpandedComponentInstanceSymbol
;
import
de.monticore.lang.monticar.generator.cpp.GeneratorCPP
;
import
de.monticore.symboltable.Scope
;
import
org.junit.Test
;
import
java.io.IOException
;
import
static
org
.
junit
.
Assert
.
assertNotNull
;
/**
* @author Sascha Schneiders
*/
public
class
ThreadingOptimizerTest
extends
AbstractSymtabTest
{
@Test
public
void
testMathUnitThreading
()
throws
IOException
{
Scope
symtab
=
createSymTab
(
"src/test/resources"
);
ExpandedComponentInstanceSymbol
componentSymbol
=
symtab
.<
ExpandedComponentInstanceSymbol
>
resolve
(
"paper.mathUnit"
,
ExpandedComponentInstanceSymbol
.
KIND
).
orElse
(
null
);
assertNotNull
(
componentSymbol
);
GeneratorCPP
generatorCPP
=
new
GeneratorCPP
();
generatorCPP
.
setUseThreadingOptimization
(
true
);
generatorCPP
.
setGenerationTargetPath
(
"./target/generated-sources-cpp/paperMatrixModifier/l2"
);
generatorCPP
.
generateFiles
(
componentSymbol
,
symtab
);
}
}
src/test/resources/results/testMath/l0/test_math_detCommandTest.h
View file @
61e15399
...
...
@@ -11,6 +11,7 @@ public:
Matrix
CONSTANTCONSTANTVECTOR0
;
void
init
()
{
CONSTANTCONSTANTVECTOR0
=
Matrix
(
3
,
3
);
CONSTANTCONSTANTVECTOR0
(
0
,
0
)
=
1
;
CONSTANTCONSTANTVECTOR0
(
0
,
1
)
=
0
;
CONSTANTCONSTANTVECTOR0
(
0
,
2
)
=
0
;
...
...
src/test/resources/results/testMath/l0/test_math_diagCommandTest.h
View file @
61e15399
...
...
@@ -11,6 +11,7 @@ public:
Matrix
CONSTANTCONSTANTVECTOR0
;
void
init
()
{
CONSTANTCONSTANTVECTOR0
=
Matrix
(
3
,
3
);
CONSTANTCONSTANTVECTOR0
(
0
,
0
)
=
1
;
CONSTANTCONSTANTVECTOR0
(
0
,
1
)
=
0
;
CONSTANTCONSTANTVECTOR0
(
0
,
2
)
=
0
;
...
...
src/test/resources/results/testMath/l0/test_math_eigvalCommandTest.h
View file @
61e15399
...
...
@@ -11,6 +11,7 @@ public:
Matrix
CONSTANTCONSTANTVECTOR0
;
void
init
()
{
CONSTANTCONSTANTVECTOR0
=
Matrix
(
3
,
3
);
CONSTANTCONSTANTVECTOR0
(
0
,
0
)
=
1
;
CONSTANTCONSTANTVECTOR0
(
0
,
1
)
=
0
;
CONSTANTCONSTANTVECTOR0
(
0
,
2
)
=
0
;
...
...
src/test/resources/results/testMath/l0/test_math_eigvecCommandTest.h
View file @
61e15399
...
...
@@ -11,6 +11,7 @@ public:
Matrix
CONSTANTCONSTANTVECTOR0
;
void
init
()
{
CONSTANTCONSTANTVECTOR0
=
Matrix
(
3
,
3
);
CONSTANTCONSTANTVECTOR0
(
0
,
0
)
=
1
;
CONSTANTCONSTANTVECTOR0
(
0
,
1
)
=
0
;
CONSTANTCONSTANTVECTOR0
(
0
,
2
)
=
0
;
...
...
src/test/resources/results/testMath/l0/test_math_invCommandTest.h
View file @
61e15399
...
...
@@ -11,6 +11,7 @@ public:
Matrix
CONSTANTCONSTANTVECTOR0
;
void
init
()
{
CONSTANTCONSTANTVECTOR0
=
Matrix
(
3
,
3
);
CONSTANTCONSTANTVECTOR0
(
0
,
0
)
=
1
;
CONSTANTCONSTANTVECTOR0
(
0
,
1
)
=
0
;
CONSTANTCONSTANTVECTOR0
(
0
,
2
)
=
0
;
...
...
src/test/resources/results/testMath/l0/test_math_matrixConstantVariableMathSectionTest.h
View file @
61e15399
...
...
@@ -9,10 +9,11 @@ public:
Matrix
CONSTANTCONSTANTVECTOR0
;
void
init
()
{
CONSTANTCONSTANTVECTOR0
=
Matrix
(
2
,
2
);
CONSTANTCONSTANTVECTOR0
(
0
,
0
)
=
1
;
CONSTANTCONSTANTVECTOR0
(
0
,
1
)
=
0
;
CONSTANTCONSTANTVECTOR0
(
1
,
2
)
=
0
;
CONSTANTCONSTANTVECTOR0
(
1
,
3
)
=
1
;
CONSTANTCONSTANTVECTOR0
(
1
,
0
)
=
0
;
CONSTANTCONSTANTVECTOR0
(
1
,
1
)
=
1
;
}
void
execute
()
{
...
...
src/test/resources/results/testMath/l0/test_math_normCommandTest.h
View file @
61e15399
...
...
@@ -11,6 +11,7 @@ public:
Matrix
CONSTANTCONSTANTVECTOR0
;
void
init
()
{
CONSTANTCONSTANTVECTOR0
=
Matrix
(
3
,
3
);
CONSTANTCONSTANTVECTOR0
(
0
,
0
)
=
1
;
CONSTANTCONSTANTVECTOR0
(
0
,
1
)
=
0
;
CONSTANTCONSTANTVECTOR0
(
0
,
2
)
=
0
;
...
...
Write
Preview
Supports
Markdown
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