Skip to content
Snippets Groups Projects
Commit 8c8f4ae7 authored by Jan Gruteser's avatar Jan Gruteser
Browse files

add pretty-print test for real division

parent 38110b54
No related branches found
No related tags found
No related merge requests found
package de.tla2b.prettyprintb.standardmodules;
import org.junit.Test;
import static de.tla2b.util.TestUtil.compare;
public class ModuleRealsTest {
// Arithmetic operator: /
@Test
public void testArithmeticOperators() throws Exception {
final String module = "-------------- MODULE Testing ----------------\n"
+ "EXTENDS Reals \n"
+ "ASSUME 1.0 / 2.0 = 0.5 \n"
+ "=================================";
final String expected = "MACHINE Testing\n"
+ "PROPERTIES 1.0 / 2.0 = 0.5 \n"
+ "END";
compare(expected, module);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment