Skip to content
Snippets Groups Projects
Select Git revision
  • 7feb09686b1892a45bb88d48d575245b71526b52
  • master default protected
  • update-goal-generator
  • add-overrides==4.1.2
  • eval-v1
  • eval-v2
  • dev
7 results

evaluate.py

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");
    	}
    }