goldentests 1.4.1

A golden file testing library where tests can be configured within the same test file
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Make sure differences of a single space/tab can be spotted.
# Unfortunately, many terminals (including mine) don't support
# coloring the foreground or background of tab characters. So
# instead of trying to highlight the character, goldentests will
# issue a warning for Add lines that contain a tab character.

# Tab used here
print("Hello,	Tab!");

# But space expected here (uncomment line 11 and comment line 14 for a test error):
# # expected stdout:
# Hello, Tab!

# expected stdout:
# Hello,	Tab!