From 1ec72cc977b1790815e3d53e174a15c5848461be Mon Sep 17 00:00:00 2001 From: Svetlana Isakova Date: Thu, 17 Oct 2019 14:23:54 +0200 Subject: [PATCH] Minor fix to avoid "invalid yaml" error from the Edu plugin --- .../Exercise 4/src/Task.kt | 4 ++-- .../Exercise 4/task-info.yaml | 24 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Functional Programming/Operations on Collections/Exercise 4/src/Task.kt b/Functional Programming/Operations on Collections/Exercise 4/src/Task.kt index 8d221a7d..55b7b4d6 100644 --- a/Functional Programming/Operations on Collections/Exercise 4/src/Task.kt +++ b/Functional Programming/Operations on Collections/Exercise 4/src/Task.kt @@ -3,12 +3,12 @@ package operationsOnCollectionsExercise4 import atomictest.eq fun List.allNonZero() = all { it != 0 } -fun List.allNonZero1() = none { it == 0 } +fun List.allNonZero1() = none { it == 0 } fun List.allNonZero2() = !any { it == 0 } fun List.hasZero() = !all { it != 0 } fun List.hasZero1() = !none { it == 0 } -fun List.hasZero2() = any { it == 0 } +fun List.hasZero2() = any { it == 0 } fun main() { val list1 = listOf(1, 2, 3) diff --git a/Functional Programming/Operations on Collections/Exercise 4/task-info.yaml b/Functional Programming/Operations on Collections/Exercise 4/task-info.yaml index 59f68188..2c0b78f9 100644 --- a/Functional Programming/Operations on Collections/Exercise 4/task-info.yaml +++ b/Functional Programming/Operations on Collections/Exercise 4/task-info.yaml @@ -4,27 +4,27 @@ files: visible: true placeholders: - offset: 139 - length: 0 - placeholder_text: /*?*/ - - offset: 146 - length: 7 - placeholder_text: TODO() - - offset: 186 length: 1 placeholder_text: /*?*/ - - offset: 193 + - offset: 147 length: 7 placeholder_text: TODO() - - offset: 274 + - offset: 187 length: 1 placeholder_text: /*?*/ - - offset: 282 + - offset: 194 length: 7 placeholder_text: TODO() - - offset: 319 - length: 0 + - offset: 275 + length: 1 placeholder_text: /*?*/ - - offset: 325 + - offset: 283 + length: 7 + placeholder_text: TODO() + - offset: 320 + length: 1 + placeholder_text: /*?*/ + - offset: 327 length: 7 placeholder_text: TODO() - name: test/Tests.kt