Skip to content

Commit 1098ebe

Browse files
committed
Fix conflicting information about sorting order
Sorting order was specified as descending in README.md but in the tests it was ascending. Tests are now expecting the same order.
1 parent 67e85b1 commit 1098ebe

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Expected Command-Line Arguments:
4444

4545
* --zone SE1|SE2|SE3|SE4 (required)
4646
* --date YYYY-MM-DD (optional, defaults to current date)
47-
* --sorted (optional, to display prices in ascending order)
47+
* --sorted (optional, to display prices in descending order)
4848
* --charging 2h|4h|8h (optional, to find optimal charging windows)
4949
* --help (optional, to display usage information)
5050

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,13 @@ void displaySortedPrices_whenRequested() {
170170

171171
// Expected sorted output (ascending by price)
172172
List<String> expectedOrder = List.of(
173-
"21-22 10,00 öre",
174-
"23-00 10,00 öre",
175-
"00-01 10,00 öre",
173+
"20-21 30,00 öre",
174+
"22-23 20,00 öre",
176175
"01-02 15,00 öre",
177176
"02-03 15,00 öre",
178-
"22-23 20,00 öre",
179-
"20-21 30,00 öre"
177+
"21-22 10,00 öre",
178+
"23-00 10,00 öre",
179+
"00-01 10,00 öre"
180180
);
181181

182182
// Extract actual lines that match the pattern

0 commit comments

Comments
 (0)