This commit is contained in:
@@ -98,9 +98,9 @@ def test_float_alignment_in_bar():
|
||||
|
||||
# Expected formatted values using format_sizeof
|
||||
expected_values = [
|
||||
" 1.3/100.1",
|
||||
" 12.5/100.1",
|
||||
" 99.9/100.1",
|
||||
"1.3/100.1",
|
||||
"12.5/100.1",
|
||||
"99.9/100.1",
|
||||
"100.0/100.1",
|
||||
"100.1/100.1",
|
||||
]
|
||||
@@ -108,7 +108,7 @@ def test_float_alignment_in_bar():
|
||||
# Extract the actual padded float/total strings from the full lines
|
||||
values = []
|
||||
for line in lines:
|
||||
match = re.search(r"(\s*\d{1,3}\.\d)/100\.1", line)
|
||||
match = re.search(r"(\d{1,3}\.\d)/100\.1", line)
|
||||
if match:
|
||||
values.append(match.group(0))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user