Prefer _1 and _2 naming for test files

This is less to type, and it's now alphabetical, so e.g.
sample_files/*.kt just works as a test argument.
pull/708/head
Wilfred Hughes 2024-04-28 23:27:05 +07:00
parent cce7b2ee1b
commit 5c40cd0282
229 changed files with 256 additions and 260 deletions

@ -125,11 +125,11 @@ Finally, add a regression test for your language. This ensures that
the output for your test file doesn't change unexpectedly. the output for your test file doesn't change unexpectedly.
Regression test files live in `sample_files/` and have the form Regression test files live in `sample_files/` and have the form
`foo_before.abc` and `foo_after.abc`. `foo_1.abc` and `foo_2.abc`.
``` ```
$ nano simple_before.json $ nano simple_1.json
$ nano simple_after.json $ nano simple_2.json
``` ```
Run the regression test script and update the `.expected` file. Run the regression test script and update the `.expected` file.

@ -18,7 +18,7 @@ Variations, Myers
``` ```
# Modern diff supports colour, but see also # Modern diff supports colour, but see also
# https://www.colordiff.org/ # https://www.colordiff.org/
$ diff --color=always -u sample_files/css_before.css sample_files/css_after.css $ diff --color=always -u sample_files/css_1.css sample_files/css_2.css
``` ```
Note that GNU diff [originally used the Hunt-McIlroy Note that GNU diff [originally used the Hunt-McIlroy
@ -64,11 +64,11 @@ work](https://stackoverflow.com/questions/40133534/is-gits-implementation-of-the
``` ```
# Original behaviour # Original behaviour
$ git diff --no-indent-heuristic --no-index sample_files/css_before.css sample_files/css_after.css $ git diff --no-indent-heuristic --no-index sample_files/css_1.css sample_files/css_2.css
# As of git 2.11, this heuristic is enabled by default. # As of git 2.11, this heuristic is enabled by default.
$ git diff --indent-heuristic --no-index sample_files/css_before.css sample_files/css_after.css $ git diff --indent-heuristic --no-index sample_files/css_1.css sample_files/css_2.css
# Patience algorithm does a better a job in this example. # Patience algorithm does a better a job in this example.
$ git diff --patience --no-index sample_files/css_before.css sample_files/css_after.css $ git diff --patience --no-index sample_files/css_1.css sample_files/css_2.css
``` ```
[Diff Match Patch](https://github.com/google/diff-match-patch) also [Diff Match Patch](https://github.com/google/diff-match-patch) also
@ -84,7 +84,7 @@ of the patience algorithm](https://github.com/git/git/commit/85551232b56e763ecfc
``` ```
# Inferior to patience on this example file. # Inferior to patience on this example file.
$ git diff --histogram --no-index sample_files/css_before.css sample_files/css_after.css $ git diff --histogram --no-index sample_files/css_1.css sample_files/css_2.css
``` ```
### prettydiff ### prettydiff

@ -12,7 +12,7 @@ the parse tree that tree-sitter produces using the `--dump-ts`
flag. flag.
``` ```
$ difft --dump-ts sample_files/javascript_simple_before.js | head $ difft --dump-ts sample_files/javascript_simple_1.js | head
program (0, 0) - (7, 0) program (0, 0) - (7, 0)
comment (0, 0) - (0, 8) "// hello" comment (0, 0) - (0, 8) "// hello"
expression_statement (1, 0) - (1, 6) expression_statement (1, 0) - (1, 6)

@ -5,22 +5,22 @@ If you have a file that's particularly slow, you can use
which functions are slow. which functions are slow.
``` ```
$ CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --bin difft sample_files/slow_before.rs sample_files/slow_after.rs $ CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --bin difft sample_files/slow_1.rs sample_files/slow_2.rs
``` ```
It's also worth looking at memory usage, as graph traversal bugs can It's also worth looking at memory usage, as graph traversal bugs can
lead to huge memory consumption. lead to huge memory consumption.
``` ```
$ /usr/bin/time -v ./target/release/difft sample_files/slow_before.rs sample_files/slow_after.rs $ /usr/bin/time -v ./target/release/difft sample_files/slow_1.rs sample_files/slow_2.rs
``` ```
If timing measurement are noisy, Linux's `perf` tool will report If timing measurement are noisy, Linux's `perf` tool will report
instructions executed, which is more stable. instructions executed, which is more stable.
``` ```
$ perf stat ./target/release/difft sample_files/slow_before.rs sample_files/slow_after.rs $ perf stat ./target/release/difft sample_files/slow_1.rs sample_files/slow_2.rs
$ perf stat ./target/release/difft sample_files/typing_old.ml sample_files/typing_new.ml $ perf stat ./target/release/difft sample_files/typing_1.ml sample_files/typing_2.ml
``` ```
Many more profiling techniques are discussed in [The Rust Performance Many more profiling techniques are discussed in [The Rust Performance

@ -437,7 +437,7 @@ parse errors occur, to avoid diffing incomplete syntax trees. When
this occurs, the file header reports the error count. this occurs, the file header reports the error count.
``` ```
$ difft sample_files/syntax_error_before.js sample_files/syntax_error_after.js $ difft sample_files/syntax_error_1.js sample_files/syntax_error_2.js
sample_files/syntax_error_after.js --- Text (2 errors, exceeded DFT_PARSE_ERROR_LIMIT) sample_files/syntax_error_after.js --- Text (2 errors, exceeded DFT_PARSE_ERROR_LIMIT)
... ...
``` ```

@ -11,7 +11,7 @@ $ difft sample_files/before.js sample_files/after.js
### Diffing Directories ### Diffing Directories
``` ```
$ difft sample_files/dir_before/ sample_files/dir_after/ $ difft sample_files/dir_1/ sample_files/dir_2/
``` ```
Difftastic will recursively walk the two directories, diffing files Difftastic will recursively walk the two directories, diffing files

@ -1,294 +1,291 @@
sample_files/Session_before.kt sample_files/Session_after.kt sample_files/Session_1.kt sample_files/Session_2.kt
80c53658ee849d38f397863803677a02 - 7f12794f0cd13609984eca50002cc38c -
sample_files/ada_before.adb sample_files/ada_after.adb sample_files/ada_1.adb sample_files/ada_2.adb
626e22f4f256ae591ece3f280176b3f7 - eb3b0e12e239ae33789136380e81406b -
sample_files/added_line_before.txt sample_files/added_line_after.txt sample_files/added_line_1.txt sample_files/added_line_2.txt
5996d2f9cc7c1e3acfdeafcf0f5e43c1 - 8a1587e6b5fc53f2ec2ac665a5d00372 -
sample_files/align_footer_before.txt sample_files/align_footer_after.txt sample_files/align_footer_1.txt sample_files/align_footer_2.txt
202e1821f9214f74568578dbc12ca83e - d640bd2de31e56a39f0efb92aff0f379 -
sample_files/apex_before.cls sample_files/apex_after.cls sample_files/apex_1.cls sample_files/apex_2.cls
fde5c2cb739fb8bb42a592f64190137e - 8e477350907734ac4d5201752523dff3 -
sample_files/b2_math_before.h sample_files/b2_math_after.h sample_files/b2_math_1.h sample_files/b2_math_2.h
8ce28404b7f7935a66bd13b14a4dbcb4 - 1ab24165d072f91be11893b92bc0943f -
sample_files/bad_combine_before.rs sample_files/bad_combine_after.rs sample_files/bad_combine_1.rs sample_files/bad_combine_2.rs
397c122ac48dd2f78c2ae7704083b5e2 - f5051bf7d2b8afa3a677388cbd458891 -
sample_files/change_outer_before.el sample_files/change_outer_after.el sample_files/change_outer_1.el sample_files/change_outer_2.el
8ed3308b9eabd486bdbe9aa2e7dc9be6 - 2b9334a4cc72da63bba28eff958f0038 -
sample_files/chinese_before.po sample_files/chinese_after.po sample_files/chinese_1.po sample_files/chinese_2.po
097250024d46c75a159b8a8efe9a1e51 - bc93dffd067b6da1916388557b7ffbaf -
sample_files/clojure_before.clj sample_files/clojure_after.clj sample_files/clojure_1.clj sample_files/clojure_2.clj
34a723cb5ec5a81f3ae5c01a64bca6c2 - 453785e11dbee818ea0e8cac78c8be47 -
sample_files/comma_and_comment_before.js sample_files/comma_and_comment_after.js sample_files/comma_1.js sample_files/comma_2.js
d25fc192d1737136a7ee3bc17d517cf9 - 151cc449076070f7f7d74d3e3d01101e -
sample_files/comma_before.js sample_files/comma_after.js sample_files/comma_and_comment_1.js sample_files/comma_and_comment_2.js
9b4b1cad1973205c4aaa96ef6d5704b0 - 9f8310a6938d04748ea16b267be1d835 -
sample_files/comments_before.rs sample_files/comments_after.rs sample_files/comments_1.rs sample_files/comments_2.rs
44f0fad026ff9acf0efd7295492909a3 - acc71128684c08bb838f17f2f47a97a8 -
sample_files/context_before.rs sample_files/context_after.rs sample_files/context_1.rs sample_files/context_2.rs
4e1e12aa33624cf4ee2f5619c1975d08 - 9133a6b7768fe87b193fe2875a261514 -
sample_files/contiguous_before.js sample_files/contiguous_after.js sample_files/contiguous_1.js sample_files/contiguous_2.js
62b54fd60ab10e864b60f379477379c2 - 22da862378dbee68e55ecba8b0fcec42 -
sample_files/css_before.css sample_files/css_after.css sample_files/css_1.css sample_files/css_2.css
35e2d577f5b1aa2626e499124524af29 - 4b7101d68f953344af5c8839e7b13a56 -
sample_files/dart_before.dart sample_files/dart_after.dart sample_files/dart_1.dart sample_files/dart_2.dart
73dd776f2587bbaf2d29fbe20dd8de40 - 631b39f8574990923d4ac3d541e2966d -
sample_files/elisp_before.el sample_files/elisp_after.el sample_files/elisp_1.el sample_files/elisp_2.el
4342ed34fe5304644afe5b224f0fd83b - e44eda0da58fe6eb3fba9ce3244044ad -
sample_files/elisp_contiguous_before.el sample_files/elisp_contiguous_after.el sample_files/elisp_contiguous_1.el sample_files/elisp_contiguous_2.el
f8745c21bac86205b36b04db1c0bad06 - beaf7d6c5136d3db7a36ff49a131b251 -
sample_files/elm_before.elm sample_files/elm_after.elm sample_files/elm_1.elm sample_files/elm_2.elm
21986c57b5eee4bbd248a927955338fe - 54d73b12de1571cfb9b27d3b2a7f4f62 -
sample_files/elvish_before.elv sample_files/elvish_after.elv sample_files/elvish_1.elv sample_files/elvish_2.elv
66aee6a75695ea5654a2de2faa18202e - f80b47646e7dd2bd3a49393d00657465 -
sample_files/erlang_before.erl sample_files/erlang_after.erl sample_files/erlang_1.erl sample_files/erlang_2.erl
c4a48cdd69bc3d0ef5e6bf2e5a8424f9 - dccdb8f65d2f099ab1a8cb66011376a2 -
sample_files/hack_before.php sample_files/hack_after.php sample_files/hack_1.php sample_files/hack_2.php
f4e6a08cf167ed376dac629bead4e54d - c2bb0aa7d7b07d6ced79f6a5363e878b -
sample_files/hare_before.ha sample_files/hare_after.ha sample_files/hare_1.ha sample_files/hare_2.ha
7848f1b9689629ab5dc5e1a742c34d6b - 6ac97614325dd9b7ebb2b3cc1e4d3296 -
sample_files/haskell_before.hs sample_files/haskell_after.hs sample_files/haskell_1.hs sample_files/haskell_2.hs
4cf36291cc7d9b72526063db0ebc5402 - 9e6e08f67a41c963250bc1748c4824ce -
sample_files/hcl_before.hcl sample_files/hcl_after.hcl sample_files/hcl_1.hcl sample_files/hcl_2.hcl
52e271ea8ffbe500d6bc3c47d35df13a - 4c3dc042f8cd57fec0ea883274b5f94e -
sample_files/hello_world_before.smali sample_files/hello_world_after.smali sample_files/hello_world_1.smali sample_files/hello_world_2.smali
c2a686a9d70b8e54d49ef7fdf2f87fb7 - 296286b067e86cccfad1fa9a0440993b -
sample_files/helpful-unit-test-before.el sample_files/helpful-unit-test-after.el sample_files/helpful_1.el sample_files/helpful_2.el
f85460a4e60d77b4cae1a987a5af4c49 - 056471124ae2e582942e214ce9222477 -
sample_files/helpful_before.el sample_files/helpful_after.el sample_files/html_1.html sample_files/html_2.html
91ce9866aeb9c8e2f59836819d1a4e06 - 3cc8b445a56b74f05e1d7bb84874edab -
sample_files/html_before.html sample_files/html_after.html sample_files/html_simple_1.html sample_files/html_simple_2.html
b5149551376defd7a0cda51aeaef420d - 0bc70b2a5c8203272473ed4c0736017b -
sample_files/html_simple_before.html sample_files/html_simple_after.html sample_files/huge_cpp_1.cpp sample_files/huge_cpp_2.cpp
915a46736d489be724b18c87b4ebf6b2 - 3a500d7b0c58fa6874eb0e4f5493a9e5 -
sample_files/huge_cpp_before.cpp sample_files/huge_cpp_after.cpp sample_files/identical_1.scala sample_files/identical_2.scala
63b627d680fcdc87eac8c242661a28c5 - 15c5a789e644348cb7e0de051ff4b63e -
sample_files/identical_before.scala sample_files/identical_after.scala sample_files/if_1.py sample_files/if_2.py
da6c8d397a9d3992b494d761d082366c - d8f7399917f48a38d556426f121cc972 -
sample_files/if_before.py sample_files/if_after.py sample_files/insert_blank_1.txt sample_files/insert_blank_2.txt
4b25e3a7ae97516afa1064984754abe7 - a5fd75afcc99aa7b2b285f1f9ced8607 -
sample_files/insert_blank_before.txt sample_files/insert_blank_after.txt sample_files/janet_1.janet sample_files/janet_2.janet
a985e0bd8d728d59f71621de35552bed - 15071de26554028495ed6b78de5f8803 -
sample_files/janet_before.janet sample_files/janet_after.janet sample_files/java_1.java sample_files/java_2.java
e02b243bbcce07d5b7cd68954bd5344d - fc0156c5e480b14077a3b4b6388b751a -
sample_files/java_before.java sample_files/java_after.java sample_files/javascript_1.js sample_files/javascript_2.js
81f88b1cd194c094bc8e23c05a5077ef - c4588f427746508bd2e71d929266d558 -
sample_files/javascript_before.js sample_files/javascript_after.js sample_files/javascript_simple_1.js sample_files/javascript_simple_2.js
008c9e0c6dae01c1cbd7e8211b33be35 - f134d7f6b4dd629c8154dd4a2dae9c34 -
sample_files/javascript_simple_before.js sample_files/javascript_simple_after.js sample_files/json_1.json sample_files/json_2.json
b9f8e04d42f4c88b3514d31743e17297 - d2c1aea9ec9be1078e4b70be4c9e1b13 -
sample_files/json_before.json sample_files/json_after.json sample_files/jsx_1.jsx sample_files/jsx_2.jsx
79d34d1bbb670bb702f6ea75ff759fa5 - 712c1c17f17f64745395e3d558ab53f3 -
sample_files/jsx_before.jsx sample_files/jsx_after.jsx sample_files/julia_1.jl sample_files/julia_2.jl
908a1637b237cd7763948b7abeb95325 - 9782f864fc462c9f873760f71c43c48d -
sample_files/julia_before.jl sample_files/julia_after.jl sample_files/load_1.js sample_files/load_2.js
0abbd2d5e040928f55fec2508f3001bd - 22365043359164f717d495336d86b996 -
sample_files/load_before.js sample_files/load_after.js sample_files/long_line_1.txt sample_files/long_line_2.txt
7ead0c677e1ccc5639ea2a8199a8175e - 40e22d364bb714421eec24b8ef808f01 -
sample_files/long_line_before.txt sample_files/long_line_after.txt sample_files/lua_1.lua sample_files/lua_2.lua
850e2efa67152b79d5b5099f202d61bb - 8318115b642361955346cc620bc3ad86 -
sample_files/lua_before.lua sample_files/lua_after.lua sample_files/makefile_1.mk sample_files/makefile_2.mk
9f5c85cd6806c724c84afa805da76bb7 - d0572210b5121ce68ac0ce45e43b922b -
sample_files/makefile_before.mk sample_files/makefile_after.mk sample_files/many_newlines_1.txt sample_files/many_newlines_2.txt
20cf6b508d1707e41e5450572ee51838 - 615de4b145b7b161e4fb285728280ed1 -
sample_files/many_newlines_before.txt sample_files/many_newlines_after.txt sample_files/metadata_1.clj sample_files/metadata_2.clj
afc8628f89076423d1453d8e3c84ac92 - 4b58ce366467c8cca46db53508e81323 -
sample_files/metadata_before.clj sample_files/metadata_after.clj sample_files/modules_1.ml sample_files/modules_2.ml
4ac68277cb69d0648961b891e02d2a7b - 05438d347d9e2ee90376b193098fc1fc -
sample_files/modules_before.ml sample_files/modules_after.ml sample_files/multibyte_1.py sample_files/multibyte_2.py
bbaf96c9185aeee13a76aaba6afc93dc - 652fce32c9c9f8491ae24c019cec08c0 -
sample_files/multibyte_before.py sample_files/multibyte_after.py sample_files/multiline_string_1.ml sample_files/multiline_string_2.ml
b4c7a2f4b674807a2c96e6829af43a27 - d8d0b40bad1697ca143709d5ab46869f -
sample_files/multiline_string_before.ml sample_files/multiline_string_after.ml sample_files/nest_1.rs sample_files/nest_2.rs
37c4b5c42a98ad43a5ff2202dd8d897a - d3a799fe2cd9d81aa251c96af5cd9711 -
sample_files/nest_before.rs sample_files/nest_after.rs sample_files/nested_slider_1.el sample_files/nested_slider_2.el
8b803688ec64307c46d19bfaead5da74 - 232c0736336031d762a1453f323e8064 -
sample_files/nested_slider_before.el sample_files/nested_slider_after.el sample_files/nested_slider_1.rs sample_files/nested_slider_2.rs
61f52bd237b8a2a69071113bdbf7b55f - e9045007a25352eb81655458aebb452c -
sample_files/nested_slider_before.rs sample_files/nested_slider_after.rs sample_files/nesting_1.el sample_files/nesting_2.el
cb15e648e6b09b6a9a2de4e1624ec6bd - fe12489ab4bb156c0aee478dd36f264a -
sample_files/nesting_before.el sample_files/nesting_after.el sample_files/newick_1.nwk sample_files/newick_2.nwk
a1d520d7a425c9eed529b8b108eaee3e - 45ec08ce924513fb24846b9609d3cbe8 -
sample_files/newick_before.nwk sample_files/newick_after.nwk sample_files/nix_1.nix sample_files/nix_2.nix
0f7bdff87a79f997b850e67d38a1c910 - 7a07c155b1ea9d5a0035438949e9dcd3 -
sample_files/nix_before.nix sample_files/nix_after.nix sample_files/nullable_1.kt sample_files/nullable_2.kt
e00b95a4cf3fa3edf994155d8656063f - 42dab8388544cfe524ac04697d80a1ca -
sample_files/nullable_before.kt sample_files/nullable_after.kt sample_files/objc_header_1.h sample_files/objc_header_2.h
66da628a2c20e18059b8669aaa14a163 - 0c6b6736a646246a502238b4aa4adb37 -
sample_files/objc_header_before.h sample_files/objc_header_after.h sample_files/objc_module_1.m sample_files/objc_module_2.m
f65feb21b25bb7f2ba31ee8f49977193 - f4a376b78a73c190dc91b39d739490a5 -
sample_files/objc_module_before.m sample_files/objc_module_after.m sample_files/ocaml_1.ml sample_files/ocaml_2.ml
faf4f280485b78d2c74c73292a405708 - fd56c5c4c9950e701879a1476ca22800 -
sample_files/ocaml_before.ml sample_files/ocaml_after.ml sample_files/outer_delimiter_1.el sample_files/outer_delimiter_2.el
2113c6c7959b8099f678d13953f7f44a - a7e206f6391237be0ce8ed244ec3dd62 -
sample_files/outer_delimiter_before.el sample_files/outer_delimiter_after.el sample_files/pascal_1.pascal sample_files/pascal_2.pascal
80a33b89c8105936fb53e0aba99fe016 - acc46c16e83dd1b48c6f761e59541923 -
sample_files/pascal_before.pascal sample_files/pascal_after.pascal sample_files/perl_1.pl sample_files/perl_2.pl
ae0ae2a4e79f68cc78d476b27175fb8a - 36154dbc656eb9762468bbe80e904c8f -
sample_files/perl_before.pl sample_files/perl_after.pl sample_files/prefer_outer_1.el sample_files/prefer_outer_2.el
29019d23a5a5381397db0cfd42934946 - 991038c9988cccc2c824652e33f772a2 -
sample_files/prefer_outer_before.el sample_files/prefer_outer_after.el sample_files/preprocesor_1.h sample_files/preprocesor_2.h
118fbbfa4a320ab40a79a59fa3b42767 - a680158a7980d738ba831aab3a63165d -
sample_files/preprocesor_before.h sample_files/preprocesor_after.h sample_files/qml_1.qml sample_files/qml_2.qml
689feef6aa36acbf2823779651a3bef7 - c23bda1d924adb57eb9e5c20744e99ea -
sample_files/qml_before.qml sample_files/qml_after.qml sample_files/r_1.R sample_files/r_2.R
d1e32b72544861bae209baaa762f5235 - 10f45a80a8554419bf30a2a0f574ab86 -
sample_files/r_before.R sample_files/r_after.R sample_files/racket_1.rkt sample_files/racket_2.rkt
1fa3b1843db94753a6b118535d7df995 - 605aec93fa7b89d08e5d8ed56ad3c1be -
sample_files/racket_before.rkt sample_files/racket_after.rkt sample_files/ruby_1.rb sample_files/ruby_2.rb
7384e9c384cdaa86ff40e4106e9e6ebd - d4d591902030355656f5c18c78f965a6 -
sample_files/ruby_before.rb sample_files/ruby_after.rb sample_files/scala_1.scala sample_files/scala_2.scala
e690af6874c954b271ef7ea8eb1d8af1 - f19e0f0ab3cabb1b5c863b78a5a6b2d2 -
sample_files/scala_before.scala sample_files/scala_after.scala sample_files/scheme_1.scm sample_files/scheme_2.scm
8b2d6102b120d4a0de790c33409eedc3 - 09f8683219a8491c22d9a2fa1ce98c16 -
sample_files/scheme_before.scm sample_files/scheme_after.scm sample_files/simple_1.js sample_files/simple_2.js
d00fcfe46aca3e2877bda566f1a3908b - 01c1ee448ac9a49abd0b68a90d7f9a6c -
sample_files/simple_before.js sample_files/simple_after.js sample_files/simple_1.scss sample_files/simple_2.scss
c9c5d1c61b7e8a953a361343bcd13c95 - 265261e79df78abfc09392d72a0273d8 -
sample_files/simple_before.scss sample_files/simple_after.scss sample_files/simple_1.txt sample_files/simple_2.txt
276a637404ace5617aadd09751cc0b07 - 416d05b8a02e41cb70b78d28cd3153d9 -
sample_files/simple_before.txt sample_files/simple_after.txt sample_files/slider_1.rs sample_files/slider_2.rs
8b88ed3d752ca7ae72ed2a44e3cfc9df - d10128f3d9ffc4a8670f417a9371bacc -
sample_files/slider_at_end_before.json sample_files/slider_at_end_after.json sample_files/slider_at_end_1.json sample_files/slider_at_end_2.json
51ded63239198014e35064ad79b957ab - cb370f1c0ccc5e155743330629f899f0 -
sample_files/slider_before.rs sample_files/slider_after.rs sample_files/slow_1.rs sample_files/slow_2.rs
b71d929c4b20c9771f0e0115012bbb0c - 2e76c128e008d5d255fdd29562208abc -
sample_files/slow_before.rs sample_files/slow_after.rs sample_files/small_1.js sample_files/small_2.js
34ef9f4f02e01f2450b17c3105da22f6 - 6bd2d5c9e2b843cfe0748355f3203de9 -
sample_files/small_before.js sample_files/small_after.js sample_files/string_subwords_1.el sample_files/string_subwords_2.el
68b801018168d9773dce32a2ac51a5b9 - 56f0551c8ba2904bdab8bc72280f28b2 -
sample_files/string_subwords_before.el sample_files/string_subwords_after.el sample_files/strings_1.el sample_files/strings_2.el
30aefbabda04615a531fe5b25ba1fa3e - 7e136d188ce03cc8fba2b1530a502ffc -
sample_files/strings_before.el sample_files/strings_after.el sample_files/swift_1.swift sample_files/swift_2.swift
cca854a0ba20bb5691d46706e7f62d50 - 6963eb333c5a37ce9ae70f257d5af7b2 -
sample_files/swift_before.swift sample_files/swift_after.swift sample_files/syntax_error_1.js sample_files/syntax_error_2.js
c5a52d09c9078236765696f436ea7661 - d4c4f1a50238480caa3ae3ed33b64d35 -
sample_files/syntax_error_before.js sample_files/syntax_error_after.js sample_files/tab_1.c sample_files/tab_2.c
857cd151569443f5698939f97100e82e - 73e5f3531ab63def4ecba423a484a869 -
sample_files/tab_before.c sample_files/tab_after.c sample_files/tab_1.txt sample_files/tab_2.txt
7e4345e584d440a136f90becb0ef45bc - a17e978720fe4c1b25614402910cc695 -
sample_files/tab_before.txt sample_files/tab_after.txt sample_files/tailwind_1.css sample_files/tailwind_2.css
c7fcee21dd5ebd251e2cf4cd7d4446d2 - 95129d12808d15e32ea726eba1832d4d -
sample_files/tailwind_before.css sample_files/tailwind_after.css sample_files/text_1.txt sample_files/text_2.txt
4fbb1d828afa99ad722944d97266e89e - 87914b8ef4a6b042054633ddb182ce02 -
sample_files/text_before.txt sample_files/text_after.txt sample_files/todomvc_1.gleam sample_files/todomvc_2.gleam
5fa6a472ccdeda0142eda3edcaeaa189 - 070fbdea2a503392f0f0c37f1b6c04bb -
sample_files/todomvc_before.gleam sample_files/todomvc_after.gleam sample_files/toml_1.toml sample_files/toml_2.toml
87aec5b4eb38e5c3f9c84368d28185d2 - df36cf07bb1b56fbdbcea7f651b4344d -
sample_files/toml_before.toml sample_files/toml_after.toml sample_files/trailling_newline_1.yaml sample_files/trailling_newline_2.yaml
34fbe2ec9ff514cd53edfe8d961d5093 - 104da15de44e4625496246baac20d320 -
sample_files/trailling_newline_before.yaml sample_files/trailling_newline_after.yaml sample_files/typescript_1.ts sample_files/typescript_2.ts
6c2b9be2f28bac9d242f5145e4732c43 - fee7ee33d2037ad1941ba6bb5532a1db -
sample_files/typescript_before.ts sample_files/typescript_after.ts sample_files/typing_1.ml sample_files/typing_2.ml
27bc9e394d8119c7dd208a9d7985681e - 36161bd77a8c86643bc90656ec41c92c -
sample_files/typing_before.ml sample_files/typing_after.ml sample_files/utf16_1.py sample_files/utf16_2.py
709c41b6c1a00c27f67cd39c823c9891 - 39014a682ed2318f980c7ea4177cf659 -
sample_files/utf16_before.py sample_files/utf16_after.py sample_files/vhdl_1.vhd sample_files/vhdl_2.vhd
bbf22d2c5003b638c0f8d08f21bbbb66 - 0f4de895a568092795c87f3d0a8a07e8 -
sample_files/vhdl_before.vhd sample_files/vhdl_after.vhd sample_files/whitespace_1.tsx sample_files/whitespace_2.tsx
eb987aa621cfa733bb4fcd52b255fbbf - ac8b1a89ac26333f2d4e9433b2ca3958 -
sample_files/whitespace_before.tsx sample_files/whitespace_after.tsx sample_files/xml_1.xml sample_files/xml_2.xml
5b989281ee27b63d6fb26474e3d49f25 - c474ecc6c1c30051465ef862cfddc01d -
sample_files/xml_before.xml sample_files/xml_after.xml sample_files/yaml_1.yaml sample_files/yaml_2.yaml
56cae800a4fb612ac5c1e0b5cb9c43b8 - f068239fc7bade0e6de96d81136c1ac5 -
sample_files/yaml_before.yaml sample_files/yaml_after.yaml sample_files/zig_1.zig sample_files/zig_2.zig
9a94455c22d827576c73d8a8238dd55d - 4516796003b81f35bfa57d84bb7c0cbe -
sample_files/zig_before.zig sample_files/zig_after.zig
4753ca757c03b1296976ff71e220c62b -

@ -24,8 +24,8 @@ LC_ALL=C
LC_COLLATE=C LC_COLLATE=C
echo "==> Check outputs" echo "==> Check outputs"
for before_f in sample_files/*before.*; do for before_f in sample_files/*_1.*; do
after_f=${before_f/before/after} after_f=${before_f/_1/_2}
echo "$before_f $after_f" echo "$before_f $after_f"
difft_out=$(DFT_WIDTH=180 ./target/release/difft --color=always "$before_f" "$after_f" | md5sum) difft_out=$(DFT_WIDTH=180 ./target/release/difft --color=always "$before_f" "$after_f" | md5sum)

Some files were not shown because too many files have changed in this diff Show More