Skip to content

Instantly share code, notes, and snippets.

@mikebrock
Created June 10, 2011 18:40
Show Gist options
  • Save mikebrock/1019463 to your computer and use it in GitHub Desktop.
Save mikebrock/1019463 to your computer and use it in GitHub Desktop.
Unit test
public void testNarrowToWideCompare() {
Serializable s = MVEL.compileExpression("new String('foo') == new Object()",
ParserContext.create().stronglyTyped());
assertFalse((Boolean) MVEL.executeExpression(s));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment