1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-03 20:02:28 +01:00

Added three new snapshot tests for --tabs and --wrap.

This commit is contained in:
eth-p
2018-09-11 13:47:01 -07:00
parent d90797f8e9
commit c1e1f753cf
6 changed files with 153 additions and 26 deletions

View File

@@ -15,9 +15,12 @@ def generate_snapshots():
for style in collective_styles:
generate_style_snapshot(style)
generate_snapshot("tabs_passthrough", "--tabs=0 --style=full")
generate_snapshot("tabs_4", "--tabs=4 --style=full")
generate_snapshot("tabs_8", "--tabs=8 --style=full")
generate_snapshot("tabs_passthrough", "--tabs=0 --style=full --wrap=never")
generate_snapshot("tabs_passthrough_wrapped", "--tabs=0 --style=full --wrap=character")
generate_snapshot("tabs_4", "--tabs=4 --style=full --wrap=never")
generate_snapshot("tabs_4_wrapped", "--tabs=4 --style=full --wrap=character")
generate_snapshot("tabs_8", "--tabs=8 --style=full --wrap=never")
generate_snapshot("tabs_8_wrapped", "--tabs=8 --style=full --wrap=character")
def generate_style_snapshot(style):
generate_snapshot(style.replace(",","_"), "--style={}".format(style))