# File lib/rcodetools/xmptestunitfilter.rb, line 90 90: def equal_assertion(expected, actual) 91: "assert_equal(#{expected}, #{actual})" 92: end
# File lib/rcodetools/xmptestunitfilter.rb, line 70 70: def nil_assertion(expression) 71: ["assert_nil(#{expression})"] 72: end
# File lib/rcodetools/xmptestunitfilter.rb, line 85 85: def object_assertions(klass_txt, value_txt, expression) 86: [ "assert_kind_of(#{klass_txt}, #{expression})", 87: "assert_equal(#{value_txt.inspect}, #{expression}.inspect)" ] 88: end
# File lib/rcodetools/xmptestunitfilter.rb, line 74 74: def value_assertions(klass_txt, value_txt, value, expression) 75: case value 76: when Float 77: ["assert_in_delta(#{value.inspect}, #{expression}, #{FLOAT_TOLERANCE})"] 78: when Numeric, String, Hash, Array, Regexp, TrueClass, FalseClass, Symbol, NilClass 79: ["assert_equal(#{value_txt}, #{expression})"] 80: else 81: object_assertions(klass_txt, value_txt, expression) 82: end 83: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.