Commit Graph

24 Commits (master)

Author SHA1 Message Date
Mahdi Dibaiee 312c8ef01f
Add new `--style` called `header-filesize` and display it by default (#1988)
Also rename `header` to `header-filename`.

Related to #1701
2 years ago
Diva M 2339d78bf4 update snapshot tests 3 years ago
Tom Milligan aa4000cb0d
style: add component 'rule' for horizontal file delimiter 4 years ago
Ethan P 21821f1d4c Updated snapshot tests 5 years ago
sharkdp cbed338c3a Remove generation code for tabs_ tests 6 years ago
sharkdp d96ee2261f Remove tab-related text 6 years ago
Lawrence Chou 58198d0700 rewrite 6 snapshot tests as integration test 6 years ago
sharkdp b4c6e412dc Make generate_snapshots script more robust 6 years ago
sharkdp 3e21d69a92 Re-generate files again 6 years ago
sharkdp b7690d4bb1 Undo change in sample.modified.rs 6 years ago
eth-p 9ef1e9f792
Update snapshots. 6 years ago
eth-p 503fe0b641
Fix sample.modified.rs 6 years ago
eth-p c1e1f753cf
Added three new snapshot tests for --tabs and --wrap. 6 years ago
eth-p 7cdcdbb31d
Updated snapshots. 6 years ago
eth-p 9159341714
Modified snapshot tests to support tab expansion.
This changes how the files are named (to allow for snapshots that aren't
directly related to the --style argument) and fixes the
generate_snapshots.py script to work with the latest version of bat.

Three new tests are also introduced:
- tabs_4 - Tab expansion with a width of 4.
- tabs_8 - Tab expansion with a width of 8.
- tabs_passthrough - No tab expansion.
6 years ago
Ezinwa Okpoechi 2ce8655167 Build bat before generating snapshots 6 years ago
Ezinwa Okpoechi a452467e06 Remove unnecessary space if there are no decorations 6 years ago
Ezinwa Okpoechi 2ea3758c4b Justify header when there are decorations but no grid 6 years ago
Ezinwa Okpoechi 882931a77b Update snapshots 6 years ago
Ezinwa Okpoechi d0782ef954 Add line with invalid UTF-8 6 years ago
eth-p 9f005d115d
Update snapshot test files. 6 years ago
Ezinwa Okpoechi 0886a24685 Add snapshot testing 6 years ago
Ezinwa Okpoechi 53eb9c57d6 Add generated snapshots 6 years ago
Ezinwa Okpoechi 026a9ebae3 Add sample files and snapshot generator 6 years ago