Commit d7167db3 authored by Bram Kohlen's avatar Bram Kohlen
Browse files

Arithmetic Test

parent 2f032858
Pipeline #60772 passed with stages
in 1 minute and 12 seconds
package de.monticore.lang.monticar.mpp.models;
import org.junit.Ignore;
import org.junit.Test;
import java.io.IOException;
import static junit.framework.TestCase.assertEquals;
public class ArithmeticTest extends AbstractModelTest {
@Test
@Ignore
public void printTest() throws IOException
{
System.out.println(printVanillaModel("Arithmetic.m"));
}
@Test
public void testModel() throws IOException
{
String actual = printVanillaModel("Arithmetic.m");
String expected =
"package montimath.vanilla;\n" +
"\n" +
"script Arithmetic\n" +
" Q rational;\n" +
" rational = 1 + 2 * 3;\n" +
"end";
assertEquals(expected, actual);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment