items[2] = factory.createStringValue("c");
context.getCurrentScope().declareVariable(
new ImmutableExpandedName("", "myVar"),
factory.createSequence(items));
Expression exp = compileExpression("$myVar=(\"a\",\"b\",\"c\")");
Value result = exp.evaluate(context);
assertTrue("Sequence comparison failed :" +
"'(\"a\",\"b\",\"c\")=(\"a\",\"d\")'",
((BooleanValue) result).asJavaBoolean());
Expression exp2 = compileExpression("$myVar=(\"a\",\"d\")");
Value result2 = exp2.evaluate(context);
assertTrue("Sequence comparison failed: " +
"'(\"a\",\"b\",\"c\")=(\"a\",\"d\")'",
((BooleanValue) result2).asJavaBoolean());
Expression exp3 = compileExpression("2=(3, 4 div 2)");
Value result3 = exp3.evaluate(context);
assertTrue("Sequence comparison failed : '2=(3, 4 div 2)'",
((BooleanValue) result3).asJavaBoolean());
}