From fb47b33fa21e13d7f0ccbd44598f72c1419c2434 Mon Sep 17 00:00:00 2001 From: Kirill Artamonov Date: Tue, 15 Oct 2024 14:49:28 +0200 Subject: [PATCH] Align class and file names (#460) Rename `Exercise` class to `LargestSeriesProduct` (matches file name and the class name expected by the tests - in stub file - in reference solution --- .../.meta/src/reference/groovy/LargestSeriesProduct.groovy | 2 +- .../src/main/groovy/LargestSeriesProduct.groovy | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exercises/practice/largest-series-product/.meta/src/reference/groovy/LargestSeriesProduct.groovy b/exercises/practice/largest-series-product/.meta/src/reference/groovy/LargestSeriesProduct.groovy index 050d4f29..8262ce13 100644 --- a/exercises/practice/largest-series-product/.meta/src/reference/groovy/LargestSeriesProduct.groovy +++ b/exercises/practice/largest-series-product/.meta/src/reference/groovy/LargestSeriesProduct.groovy @@ -1,4 +1,4 @@ -class Exercise { +class LargestSeriesProduct { static int largestProduct(String digits, final int span) { if (span < 0) throw new IllegalArgumentException("span must not be negative") if (span > digits.length()) throw new IllegalArgumentException("span must be smaller than string length") diff --git a/exercises/practice/largest-series-product/src/main/groovy/LargestSeriesProduct.groovy b/exercises/practice/largest-series-product/src/main/groovy/LargestSeriesProduct.groovy index 0d899c06..37ffadf8 100644 --- a/exercises/practice/largest-series-product/src/main/groovy/LargestSeriesProduct.groovy +++ b/exercises/practice/largest-series-product/src/main/groovy/LargestSeriesProduct.groovy @@ -1,5 +1,5 @@ -class Exercise { +class LargestSeriesProduct { static largestProduct(digits, span) { throw new UnsupportedOperationException('Method implementation is missing') } -} \ No newline at end of file +}