Defect #31507 » 31507.patch
test/unit/lib/redmine/unified_diff_test.rb | ||
---|---|---|
92 | 92 |
raw = <<~DIFF |
93 | 93 |
--- test.orig.txt Wed Feb 15 16:10:39 2012 |
94 | 94 |
+++ test.new.txt Wed Feb 15 16:11:25 2012 |
95 |
@@ -1,5 +1,5 @@
|
|
95 |
@@ -1,4 +1,4 @@
|
|
96 | 96 |
Semicolons were mysteriously appearing in code diffs in the repository |
97 |
|
|
97 |
``` |
|
98 | 98 |
-void DoSomething(std::auto_ptr<MyClass> myObj) |
99 | 99 |
+void DoSomething(const MyClass& myObj) |
100 |
|
|
100 |
``` |
|
101 | 101 |
DIFF |
102 | 102 |
diff = Redmine::UnifiedDiff.new(raw, :type => 'sbs') |
103 | 103 |
assert_equal 1, diff.size |