aboutsummaryrefslogtreecommitdiff
path: root/prettier.py
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-03 05:00:29 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-03 05:00:29 +0100
commit0f957d89c90062fdf8ad8ce4c3796b54b51d20e9 (patch)
tree7fc718e6ce65bae30ae8671d0086aa81ec849ec8 /prettier.py
parent1a19e2df1b377cd5245c650ef7152f0055408cbf (diff)
downloadft_printf_test-0f957d89c90062fdf8ad8ce4c3796b54b51d20e9.tar.gz
ft_printf_test-0f957d89c90062fdf8ad8ce4c3796b54b51d20e9.tar.bz2
ft_printf_test-0f957d89c90062fdf8ad8ce4c3796b54b51d20e9.zip
Fixed false positive on blank output, added last char test of pft
Diffstat (limited to 'prettier.py')
-rw-r--r--prettier.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/prettier.py b/prettier.py
index 75ccd66..39edeaa 100644
--- a/prettier.py
+++ b/prettier.py
@@ -68,14 +68,15 @@ def print_logs(logs, options):
print(total_str)
print("=" * (len(total_str) - len(green("")) * 2 - len(red("")) * 2 - 2))
- if options["quiet"]:
- return
- for ko in logs["ko_info"]:
+ infos = logs["ko_info"][:20] if options["quiet"] else logs["ko_info"]
+ for ko in infos:
print("-", ko["msg"])
if options["verbose"]:
print(" ", ko["expected"])
print(" ", ko["actual"])
print()
+ if options["quiet"] and logs["ko"] > 20:
+ print("...")
print("\nSee result.log for more information\n")