Skip to content

Commit 8ab6b93

Browse files
committed
Fix displayMinMaxPrices_withValidData
Last assert should be testing for mean price but was using the same expected value as for highest price
1 parent 594f5d0 commit 8ab6b93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/example/MainTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ void displayMinMaxPrices_withValidData() {
142142
assertThat(output).contains("02-03"); // Most expensive hour (0.80)
143143
assertThat(output).contains("10,00"); // 10 öre (cheapest)
144144
assertThat(output).contains("80,00"); // 80 öre (most expensive)
145-
assertThat(output).contains("80,00"); // 42,50 öre (medelpris)
145+
assertThat(output).contains("42,50"); // 42,50 öre (medelpris)
146146
}
147147

148148
@Test

0 commit comments

Comments
 (0)