Author: ruschein
Date: 2011-09-14 14:40:06 -0700 (Wed, 14 Sep 2011)
New Revision: 26799
Modified:
core3/impl/trunk/equations-impl/src/test/java/org/cytoscape/equations/internal/AttribParserTest.java
Log:
Added a new test.
Modified:
core3/impl/trunk/equations-impl/src/test/java/org/cytoscape/equations/internal/AttribParserTest.java
===================================================================
---
core3/impl/trunk/equations-impl/src/test/java/org/cytoscape/equations/internal/AttribParserTest.java
2011-09-14 20:46:48 UTC (rev 26798)
+++
core3/impl/trunk/equations-impl/src/test/java/org/cytoscape/equations/internal/AttribParserTest.java
2011-09-14 21:40:06 UTC (rev 26799)
@@ -46,6 +46,12 @@
assertTrue(parser.parse("=42 - 12 + 3 * (4 - 2) + ${BOB:12}",
attribNameToTypeMap));
}
+ public void testStringVarDefault() throws Exception {
+ final Map<String, Class<?>> attribNameToTypeMap = new
HashMap<String, Class<?>>();
+ attribNameToTypeMap.put("STR", String.class);
+ assertTrue(parser.parse("=${STR:\"xyz\"}",
attribNameToTypeMap));
+ }
+
public void testUnaryPlusAndMinus() throws Exception {
final Map<String, Class<?>> attribNameToTypeMap = new
HashMap<String, Class<?>>();
attribNameToTypeMap.put("attr1", Double.class);
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.