From 2353ad0d0f54cb7382932b7d519571b16c9d6112 Mon Sep 17 00:00:00 2001 From: Iftakhar Husan Date: Fri, 1 Mar 2024 01:06:30 +0200 Subject: [PATCH] Fix failing tests for progress_bar changes --- test/display/progress_bar_test.exs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/display/progress_bar_test.exs b/test/display/progress_bar_test.exs index e080ae1..f32229d 100644 --- a/test/display/progress_bar_test.exs +++ b/test/display/progress_bar_test.exs @@ -5,16 +5,16 @@ defmodule ProgressBarTest do test "empty bar" do bar = ProgressBar.progress_bar(%{total: 12, current: 0}) - assert bar == "| | 0 of 12" + assert bar == "| | 0 of 12 -> 0.0% complete" end test "puts counter on the right until half the koans are complete" do bar = ProgressBar.progress_bar(%{total: 12, current: 3}) - assert bar == "|=======> | 3 of 12" + assert bar == "|=======> | 3 of 12 -> 25.0% complete" end test "full bar" do bar = ProgressBar.progress_bar(%{total: 12, current: 12}) - assert bar == "|=============================>| 12 of 12" + assert bar == "|=============================>| 12 of 12 -> 100.0% complete" end end