Sha256: f394e423e74bff3cb8f847205e20afc6242720b3e9f1d2ebbf4c092eebb4e329
Contents?: true
Size: 448 Bytes
Versions: 10
Compression:
Stored size: 448 Bytes
Contents
require 'runit/testcase' require 'runit/cui/testrunner' require 'runit/testsuite' require 'diff' require 'test_cases' class DiffTest < RUNIT::TestCase include DiffStringTests include DiffArrayTests include DiffStressTest def difftest(a, b) diff = Diff.new(a, b) c = a.patch(diff) assert_equal(b, c) diff = Diff.new(b, a) c = b.patch(diff) assert_equal(a, c) end end RUNIT::CUI::TestRunner.run(DiffTest.suite)
Version data entries
10 entries across 10 versions & 1 rubygems