Skip to content
Snippets Groups Projects
Select Git revision
  • 8b1af34075af2bc8b85a9637dedc71657d65a9ca
  • master default protected
  • release
  • v2.2.0
  • v2.1.1
  • v2.1.0
  • v2.0.5
  • v2.0.2
  • v2.0.1
  • v2.0.0
  • v1.3.4
  • v1.5.0
  • v1.4.0
  • v1.3.3
  • v1.3.2
  • v1.3.1
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • 0.0.1
  • 0.0.2
22 results

gradlew.bat

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    TestKeywords.java 637 B
    package de.tla2b.expression;
    
    import org.junit.Test;
    
    import static de.tla2b.util.TestUtil.compareExpr;
    
    public class TestKeywords {
    
    	@Test
    	public void testTRUE() throws Exception {
    		compareExpr("TRUE", "TRUE");
    	}
    
    	@Test
    	public void testNat() throws Exception {
    		compareExpr("NATURAL", "Nat");
    	}
    
    	@Test
    	public void testExcept() throws Exception {
    		compareExpr("x = a <+ {1 |-> 1}", "x = [a EXCEPT ![1] = 1]");
    	}
    
    	@Test
    	public void testCardinality() throws Exception {
    		compareExpr("card({1, 2, 3})", "Cardinality({1,2,3})");
    	}
    
    	@Test
    	public void testDom() throws Exception {
    		compareExpr("dom_1 = 1", "dom = 1");
    	}
    }