This commit is contained in:
@@ -118,8 +118,15 @@ def test_float_alignment_in_bar():
|
||||
assert expected in values, f"Missing expected value: {expected}"
|
||||
|
||||
# Check that all values are visually aligned, output with same length, to ensure that format_sizeof add the good number avec spaces
|
||||
lengths = [len(v) for v in values]
|
||||
assert len(set(lengths)) == 1, f"Misaligned values: {values}"
|
||||
|
||||
bar_segments = []
|
||||
for line in lines:
|
||||
match = re.search(r".*?\]", line)
|
||||
if match:
|
||||
bar_segments.append(match.group(0))
|
||||
|
||||
lengths = [len(seg) for seg in bar_segments]
|
||||
assert len(set(lengths)) == 1
|
||||
|
||||
|
||||
def test_custom_unit():
|
||||
|
||||
Reference in New Issue
Block a user