You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I need to compare multiline strings but the output is too hard to analyze. It the a way to make it more visual. For example fast-diff seems interesting.
The second problem is compare on windows. When read input or output from disk it contains \r\n linebreaks. Every time I should to add .replace(/\r\n/g, '\n')
The text was updated successfully, but these errors were encountered:
Hi @TrySound , thank you for your opinion. I understand.
power-assert is designed to be run under any environments, from old browsers to modern console, so I could not give universal fancy diffs yet (assuming only mono-color environment).
If you are using power-assert via AVA, you may be using modern console. If you only use AVA through console, customized renderer may help. I'm going to provide customized renderer for AVA users.
So, I'm sorry for inconvenience. I'll work on this soon.
FYI: if you compare two strings by ===, power-assert will show you Line level diffs by google-diff-match-patch. This feature might be help you (it's not a friendly enough though).
The second problem is compare on windows
Sorry, I have no idea to solve this. Some filtering/converting libraries may help.
Hi. I need to compare multiline strings but the output is too hard to analyze. It the a way to make it more visual. For example fast-diff seems interesting.
The second problem is compare on windows. When read input or output from disk it contains
\r\n
linebreaks. Every time I should to add.replace(/\r\n/g, '\n')
The text was updated successfully, but these errors were encountered: