package com.mitchellbosecke.pebble.extension.core;

import com.mitchellbosecke.pebble.template.EvaluationContext;
import com.mitchellbosecke.pebble.template.PebbleTemplate;
import java.util.Map;

/**
 * Implementation for the test function 'defined'.
 * <p>
 * <p>
 * Inversion of 'null' test function to provide better compatibility with the original twig version
 * and JTwig.
 *
 * @author Thomas Hunziker
 */
public class DefinedTest extends NullTest {

  @Override
  public boolean apply(Object input, Map<String, Object> args, PebbleTemplate self,
      EvaluationContext context, int
      lineNumber) {
    return !super.apply(input, args, self, context, lineNumber);
  }

}

@@ -250,19 +250,8 @@
 .%0A *
- %3Cp%3E%0A * %3Cp%3E
 %0A * 

Prepare release