5 ms·
I still cannot reproduce the problem of 9 differences. I have tried in Edge, Chrome, and Firefox on Windows 10. I will try on OSX in just a second. The reaso
by austincheney 10y ago
I still cannot reproduce the problem of 9 differences. I have tried in Edge, Chrome, and Firefox on Windows 10. I will try on OSX in just a second.
The reason why it changes output after using square braces is because the tool is language aware. Before it could not guess at a programming language and so the input is text parsed into lines. After the language detection guesses this is JSON format and formally parses the input, beautifies it, and then compares the beautified output.
I already realize that if I am going to the trouble of parsing languages that it would be far more efficient to simply compare the parsed token lists instead of beautified text, but I haven't gotten there yet.
- adsche 10y agoOh, no, I did'n use square brackets, sorry. That was just my notation, each of the letters stands on its own line.
- jfoutz 10y agoAh, just tried on my phone, the Ui at least seems to show all 9 when I type in these two files, but maybe I'm doing something wrong. File 1, a b c 1 2 3 x y z File 2, x y z 1 2 3 a b c yields, Code type is set to auto. Presumed language is unknown. Execution time: 0.013 seconds Number of differences: 9 differences from 9 lines of code.