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
languages
EmbeddedMontiArcMathOpt
Commits
936e2e4f
Commit
936e2e4f
authored
Jun 18, 2018
by
Christoph Richter
Browse files
Added parser test
parent
f2ba373a
Changes
4
Hide whitespace changes
Inline
Side-by-side
pom.xml
View file @
936e2e4f
...
...
@@ -163,6 +163,14 @@
<version>
${Embedded-MontiArc-Math.version}
</version>
</dependency>
<dependency>
<groupId>
de.monticore.lang.monticar
</groupId>
<artifactId>
embedded-montiarc-math
</artifactId>
<version>
${Embedded-MontiArc-Math.version}
</version>
<type>
test-jar
</type>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
de.monticore.lang.monticar
</groupId>
<artifactId>
embedded-montiarc-math
</artifactId>
...
...
src/main/grammars/de/monticore/lang/EmbeddedMontiArcMathOpt.mc4
View file @
936e2e4f
...
...
@@ -2,6 +2,6 @@ package de.monticore.lang;
grammar
EmbeddedMontiArcMathOpt
extends
de
.
monticore
.
lang
.
embeddedmontiarc
.
EmbeddedMontiArcMath
,
de
.
monticore
.
lang
.
MathOpt
{
BehaviorName
=
"MathOpt"
;
EMAMOptCompilationUnit
=
EMAMCompilationUnit
;
}
\ No newline at end of file
src/test/java/de/monticore/lang/embeddedmontiarcmathopt/_parser/EmbeddedMontiArcMathOptParserTest.java
View file @
936e2e4f
package
de.monticore.lang.embeddedmontiarcmathopt._parser
;
import
de.monticore.lang.embeddedmontiarc.embeddedmontiarcmath.ParserTest
;
import
de.se_rwth.commons.logging.Log
;
import
org.junit.Before
;
import
org.junit.BeforeClass
;
import
static
org
.
junit
.
Assert
.*;
public
class
EmbeddedMontiArcMathOptParserTest
{
public
class
EmbeddedMontiArcMathOptParserTest
extends
ParserTest
{
@Override
public
void
setUp
()
{
super
.
setUp
();
setParser
(
new
EmbeddedMontiArcMathOptParser
());
}
}
\ No newline at end of file
src/test/resources/test/emam/optimization/MinimizePortsTest.emam
View file @
936e2e4f
...
...
@@ -2,8 +2,8 @@ package test.emam.optimization;
component
MinimizePortsTest
{
ports
in
Q
u
;
out
Q
y
ports
in
Q
u
,
out
Q
y
;
implementation
Math
{
y
=
minimize
(
u
)
...
...
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