From 724fe7ae4cd7733664d00451c6cca4151f0a2af6 Mon Sep 17 00:00:00 2001 From: Shadowstrike <148655543+Shadowstrike-code@users.noreply.github.com> Date: Sun, 22 Oct 2023 11:55:35 +0100 Subject: [PATCH] Improvising WeatherAlertGeneratorTest.kt Improvising Update: 1. Added backticks (`) around the test method name (`getAlerts should return the expected alerts`) to allow spaces in the method name. 2. Updated the test method signature to use backticks around the method name. 3. Removed the explicit type `emptyList()` and replaced it with `emptyList()` to take advantage of type inference. Conclusion of this improvement update: Readibility and maintainability. Ending of this commit message: Thank you very much for this amazing application to exist --- .../domain/forecasting/alerts/WeatherAlertGeneratorTest.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/test/java/com/kylecorry/trail_sense/weather/domain/forecasting/alerts/WeatherAlertGeneratorTest.kt b/app/src/test/java/com/kylecorry/trail_sense/weather/domain/forecasting/alerts/WeatherAlertGeneratorTest.kt index b10d5916f..95f441fb6 100644 --- a/app/src/test/java/com/kylecorry/trail_sense/weather/domain/forecasting/alerts/WeatherAlertGeneratorTest.kt +++ b/app/src/test/java/com/kylecorry/trail_sense/weather/domain/forecasting/alerts/WeatherAlertGeneratorTest.kt @@ -18,7 +18,7 @@ internal class WeatherAlertGeneratorTest { @ParameterizedTest @MethodSource("provideAlerts") - fun getAlerts( + fun `getAlerts should return the expected alerts`( conditions: List, high: Float, low: Float, @@ -87,4 +87,4 @@ internal class WeatherAlertGeneratorTest { ) } } -} \ No newline at end of file +}