Skip to content

Commit 49114a4

Browse files
committed
make assertions a bit more readable, colors indicate diff lines enough
1 parent 77ae522 commit 49114a4

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

Tests/JExtractSwiftTests/Asserts/TextAssertions.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,6 @@ func assertOutput(
189189
for (n, g) in gotLines.enumerated() where n >= printFromLineNo {
190190
let baseLine = "\(n): \(g)"
191191
var line = baseLine
192-
if diffLineNumbers.contains(n) {
193-
line += "\n"
194-
let leadingCount = "\(n): ".count
195-
let message = "\(String(repeating: " ", count: leadingCount))\(String(repeating: "^", count: 8)) EXPECTED MATCH OR SEARCHING FROM HERE "
196-
line += "\(message)\(String(repeating: "^", count: max(0, line.count - message.count)))"
197-
line = line.red
198-
}
199192
print(line)
200193
}
201194
print("==== ---------------------------------------------------------------\n")

0 commit comments

Comments
 (0)