From ce5113c48c75fec6a372381293b70feb3e63b24d Mon Sep 17 00:00:00 2001 From: pauljervis Date: Tue, 17 Apr 2018 16:37:14 +0100 Subject: [PATCH] Bael 1404 kotlin (#4033) * add article files * update kotlin version in pom * IntelliJ added binary folder to all the .gitignores * IntelliJ added binary folder to all the .gitignores * update test function names * Expand tests and add more code for more meaningful content within the article. Remove core-kotlin from parent pom again for eclipse to work. * adjust for issues with custom-pmd * rename test * Revert "IntelliJ added binary folder to all the .gitignores" This reverts commit 0850a2acd5162499540231146c795cfda9ffcfc5. * Revert "IntelliJ added binary folder to all the .gitignores" This reverts commit 2b17cf2ff3624ecbe37f07bb9985ecfd3a977e01. * renamed test to match article --- core-kotlin/src/test/kotlin/com/baeldung/filter/DistinctTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core-kotlin/src/test/kotlin/com/baeldung/filter/DistinctTest.kt b/core-kotlin/src/test/kotlin/com/baeldung/filter/DistinctTest.kt index 4e445af536..4cc6f647e1 100644 --- a/core-kotlin/src/test/kotlin/com/baeldung/filter/DistinctTest.kt +++ b/core-kotlin/src/test/kotlin/com/baeldung/filter/DistinctTest.kt @@ -7,7 +7,7 @@ internal class DistinctTest { data class SmallClass(val key: String, val num: Int) @Test - fun givenArrayOfSomeDuplicateValues_whenApplyingDistinct_thenReturnListOfNoDuplicateValues() { + fun whenApplyingDistinct_thenReturnListOfNoDuplicateValues() { val array = arrayOf(1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 5, 6, 7, 8, 9) val result = array.distinct() val expected = listOf(1, 2, 3, 4, 5, 6, 7, 8, 9)