assertEquals(getContents(root, "isempty.txt"), sw.toString());
}
public void testNumber0IsFalse() throws IOException {
DefaultMustacheFactory c = createMustacheFactory();
c.setObjectHandler(new ReflectionObjectHandler() {
@Override
public Writer falsey(Iteration iteration, Writer writer, Object object, Object[] scopes) {
if (object instanceof Number) {
if (((Number) object).intValue() == 0) {
return iteration.next(writer, object, scopes);