Skip to main content

[el-spec commits] [el-spec~source-code:186] Add a test for average of an empty list.

  • From: kchung@...
  • To: commits@...
  • Subject: [el-spec commits] [el-spec~source-code:186] Add a test for average of an empty list.
  • Date: Thu, 2 Aug 2012 20:57:18 +0000

Project:    el-spec
Repository: source-code
Revision:   186
Author:     kchung
Date:       2012-08-02 20:57:16 UTC
Link:       

Log Message:
------------
Add a test for average of an empty list.



Revisions:
----------
186


Modified Paths:
---------------
trunk/src/test/java/org/glassfish/el/test/LinqTest.java


Diffs:
------
Index: trunk/src/test/java/org/glassfish/el/test/LinqTest.java
===================================================================
--- trunk/src/test/java/org/glassfish/el/test/LinqTest.java     (revision 185)
+++ trunk/src/test/java/org/glassfish/el/test/LinqTest.java     (revision 186)
@@ -393,6 +393,8 @@
             i++;
         }
         assertEquals(i, 1);
+        ret = elp.eval("[].average()");
+        assertEquals(ret, null);
     }
 
 }





[el-spec commits] [el-spec~source-code:186] Add a test for average of an empty list.

kchung 08/02/2012
 
 
Close
loading
Please Confirm
Close