def term_diff term, actual, options
      if actual.is_a?(String)
        actual_term_diff term, actual, options
      else
        RegexpDifference.new term.matcher, actual, "Expected a String matching #{term.matcher.inspect} (like #{term.generate.inspect}) but got #{class_name_with_value_in_brackets(actual)} at <path>"
      end
    end
def term_diff term, actual, options
      if actual.is_a?(String)
        actual_term_diff term, actual, options
      else
        RegexpDifference.new term.matcher, actual, "Expected a String matching #{term.matcher.inspect} (like #{term.generate.inspect}) but got #{class_name_with_value_in_brackets(actual)} at <path>"
      end
    end
Backwards compatibility