2 require "test/unit/assertions"
8 def assert_true(boolean, message=nil)
10 assert_equal(true, boolean, message)
14 def assert_false(boolean, message=nil)
16 assert_equal(false, boolean, message)
20 def assert_nested_sorted_array(expected, actual, message=nil)
22 assert_equal(expected.collect {|elem| elem.sort},
23 actual.collect {|elem| elem.sort},
28 def assert_equal_log_entries(expected, actual, message=nil)
30 actual = actual.collect do |entry|
31 changed_paths = entry.changed_paths
32 changed_paths.each_key do |path|
33 changed_path = changed_paths[path]
34 changed_paths[path] = [changed_path.action,
35 changed_path.copyfrom_path,
36 changed_path.copyfrom_rev]
40 entry.revision_properties.reject {|key, value| key == "svn:date"},
43 assert_equal(expected, actual, message)