From e5516496fc87f0df643dbe7662f192cc2279261d Mon Sep 17 00:00:00 2001 From: Mahmoud-Ibrahim-750 <104442642+Mahmoud-Ibrahim-750@users.noreply.github.com> Date: Tue, 11 Jul 2023 22:31:50 +0300 Subject: [PATCH] Update BarChartTest.kt Updated the tests to provide the data for skipped entries too. --- .../java/org/isoron/uhabits/core/ui/views/BarChartTest.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uhabits-core/src/jvmTest/java/org/isoron/uhabits/core/ui/views/BarChartTest.kt b/uhabits-core/src/jvmTest/java/org/isoron/uhabits/core/ui/views/BarChartTest.kt index ff608a49b..0ccb0dd88 100644 --- a/uhabits-core/src/jvmTest/java/org/isoron/uhabits/core/ui/views/BarChartTest.kt +++ b/uhabits-core/src/jvmTest/java/org/isoron/uhabits/core/ui/views/BarChartTest.kt @@ -34,10 +34,12 @@ class BarChartTest { val component = BarChart(theme, fmt) private val axis = (0..100).map { today.minus(it) } private val series1 = listOf(200.0, 0.0, 150.0, 137.0, 0.0, 0.0, 500.0, 30.0, 100.0, 0.0, 300.0) + private val series2 = listOf(10.0, 0.0, 50.0, 0.0, 0.0, 0.0, 100.0, 0.0, 60.0, 0.0, 150.0) init { component.axis = axis component.series.add(series1) + component.skippedSeries.add(series2) component.colors.add(theme.color(8)) }