Skip to content

Commit 2353ad0

Browse files
committed
Fix failing tests for progress_bar changes
1 parent 70c7669 commit 2353ad0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/display/progress_bar_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ defmodule ProgressBarTest do
55

66
test "empty bar" do
77
bar = ProgressBar.progress_bar(%{total: 12, current: 0})
8-
assert bar == "| | 0 of 12"
8+
assert bar == "| | 0 of 12 -> 0.0% complete"
99
end
1010

1111
test "puts counter on the right until half the koans are complete" do
1212
bar = ProgressBar.progress_bar(%{total: 12, current: 3})
13-
assert bar == "|=======> | 3 of 12"
13+
assert bar == "|=======> | 3 of 12 -> 25.0% complete"
1414
end
1515

1616
test "full bar" do
1717
bar = ProgressBar.progress_bar(%{total: 12, current: 12})
18-
assert bar == "|=============================>| 12 of 12"
18+
assert bar == "|=============================>| 12 of 12 -> 100.0% complete"
1919
end
2020
end

0 commit comments

Comments
 (0)