We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70c7669 commit 2353ad0Copy full SHA for 2353ad0
test/display/progress_bar_test.exs
@@ -5,16 +5,16 @@ defmodule ProgressBarTest do
5
6
test "empty bar" do
7
bar = ProgressBar.progress_bar(%{total: 12, current: 0})
8
- assert bar == "| | 0 of 12"
+ assert bar == "| | 0 of 12 -> 0.0% complete"
9
end
10
11
test "puts counter on the right until half the koans are complete" do
12
bar = ProgressBar.progress_bar(%{total: 12, current: 3})
13
- assert bar == "|=======> | 3 of 12"
+ assert bar == "|=======> | 3 of 12 -> 25.0% complete"
14
15
16
test "full bar" do
17
bar = ProgressBar.progress_bar(%{total: 12, current: 12})
18
- assert bar == "|=============================>| 12 of 12"
+ assert bar == "|=============================>| 12 of 12 -> 100.0% complete"
19
20
0 commit comments