| Class | UnifiedMatchers::TestLcsDiffMatcher |
| In: |
lib/unified_matchers/lcs_diff_matcher.rb
|
| Parent: | ::Test::Unit::TestCase |
# File lib/unified_matchers/lcs_diff_matcher.rb, line 37 def setup self.matcher = LcsDiffMatcher.new @my = UnifiedMatchers.fixtures/'my.file' end
# File lib/unified_matchers/lcs_diff_matcher.rb, line 48 def test_lcs_diff assert_success 42, 42 assert_success '42', '42' assert_success @my, @my assert_success "foo/bar\n", @my assert_data_kind_of 'foo', 'bar', Array assert_data_kind_of %w[ a b c d e f ], %w[ a c d h e ], Array s = "not Diff::LCS.diff(\"foo\".to_a, 42.to_s.to_a)" assert_message_equal 'foo', 42, s assert_failure(/baz/, @my) assert_success(/foo/, @my) end
# File lib/unified_matchers/lcs_diff_matcher.rb, line 62 def test_stream_matcher self.matcher = StreamMatcher.new assert_not_equal(StreamMatcher.order, LcsDiffMatcher.order) assert_not_equal(StreamMatcher.ref_triggers, LcsDiffMatcher.ref_triggers) assert_data_kind_of 'foo', 'bar', NilClass assert_data_kind_of @my, 'bar', NilClass end