vm/src/test/java/org/apidesign/vm4brwsr/ArrayTest.java
changeset 128 8db5cf267d74
parent 106 346633cd13d6
child 131 dbfbcd718146
     1.1 --- a/vm/src/test/java/org/apidesign/vm4brwsr/ArrayTest.java	Tue Oct 16 12:42:00 2012 +0200
     1.2 +++ b/vm/src/test/java/org/apidesign/vm4brwsr/ArrayTest.java	Tue Oct 30 22:22:18 2012 +0100
     1.3 @@ -36,9 +36,9 @@
     1.4  
     1.5  import javax.script.Invocable;
     1.6  import javax.script.ScriptException;
     1.7 -import org.testng.annotations.Test;
     1.8  import static org.testng.Assert.*;
     1.9  import org.testng.annotations.BeforeClass;
    1.10 +import org.testng.annotations.Test;
    1.11  
    1.12  /**
    1.13   *
    1.14 @@ -50,6 +50,11 @@
    1.15              Double.valueOf(15)
    1.16          );
    1.17      }
    1.18 +    
    1.19 +    @Test public void realOperationOnArrays() throws Exception {
    1.20 +        assertEquals(Array.sum(), 105.0, "Computes to 105");
    1.21 +    }
    1.22 +    
    1.23      @Test public void verifyOperationsOnArrays() throws Exception {
    1.24          assertExec("The sum is 105", "org_apidesign_vm4brwsr_Array_sumD", 
    1.25              Double.valueOf(105)