Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
monticore
EmbeddedMontiArc
generators
EMAM2Cpp
Commits
16698687
Commit
16698687
authored
Oct 25, 2017
by
Sascha Niklas Schneiders
Browse files
added atanh test
parent
04906a91
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/test/java/de/monticore/lang/monticar/generator/cpp/OctaveFunctionTest.java
View file @
16698687
...
...
@@ -99,6 +99,10 @@ public class OctaveFunctionTest extends AbstractSymtabTest {
public
void
testAtanCommand
()
throws
IOException
{
testMathCommand
(
"atan"
);
}
@Test
public
void
testAtanhCommand
()
throws
IOException
{
testMathCommand
(
"atanh"
);
}
@Test
public
void
testCosCommand
()
throws
IOException
{
...
...
src/test/resources/results/testMath/l0/test_math_atanhCommandTest.h
0 → 100644
View file @
16698687
#ifndef TEST_MATH_ATANHCOMMANDTEST
#define TEST_MATH_ATANHCOMMANDTEST
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#include
"octave/oct.h"
#include
"Helper.h"
#include
"octave/builtin-defun-decls.h"
class
test_math_atanhCommandTest
{
public:
void
init
()
{
}
void
execute
()
{
double
a
=
(
Helper
::
getDoubleFromOctaveListFirstResult
(
Fatanh
(
Helper
::
convertToOctaveValueList
(
1
/
2
),
1
)));
}
};
#endif
src/test/resources/test/math/AtanhCommandTest.emam
0 → 100644
View file @
16698687
package
test
.
math
;
component
AtanhCommandTest
{
implementation
Math
{
Q
a
=
atanh
(
0.5
);
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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