generated from jetbrains-academy/kotlin-course-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3f82b84
commit 4705e75
Showing
64 changed files
with
108 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
custom_name: Introduction | ||
content: | ||
- welcomeLesson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
id: 459294228 |
10 changes: 10 additions & 0 deletions
10
...HelenaTask/src/main/kotlin/org/jetbrains/academy/plugin/course/dev/welcome/HelloHelena.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.jetbrains.academy.plugin.course.dev.welcome | ||
|
||
fun sayHelloHelena(howManyTimes: Int): String { | ||
TODO() | ||
} | ||
|
||
fun main() { | ||
val howManyTimes = readln().toInt() | ||
print(sayHelloHelena(howManyTimes)) | ||
} |
7 changes: 7 additions & 0 deletions
7
introductionSection/welcomeLesson/helloHelenaTask/task-info.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
type: edu | ||
custom_name: Hello Helena! | ||
files: | ||
- name: src/main/kotlin/org/jetbrains/academy/plugin/course/dev/welcome/HelloHelena.kt | ||
visible: true | ||
- name: test/org/jetbrains/academy/plugin/course/dev/welcome/Tests.kt | ||
visible: false |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Hi! My name is Helena. I’m working in the Plugin Development Team. We have just hired a new young developer, Jonsi, so I’ve prepared lots of amazing projects for him to do. | ||
|
||
But wait, he has never worked with IntelliJ Platform before?! So well, I’ll try to teach him all important things during one week of his probation. | ||
|
||
Say hello to Helena! Add implementation to method `helloHelena` method which should return “Hello, Helena!” given number of times, separated by new line. | ||
|
||
<div class="hint"> | ||
|
||
Use `System.lineSeparator()` to get platform specific new line symbol | ||
</div> |
28 changes: 28 additions & 0 deletions
28
...lcomeLesson/helloHelenaTask/test/org/jetbrains/academy/plugin/course/dev/welcome/Tests.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.jetbrains.academy.plugin.course.dev.welcome | ||
|
||
|
||
import org.junit.Assert.assertEquals | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
import org.junit.runners.Parameterized | ||
|
||
@RunWith(Parameterized::class) | ||
class Test(private val howManyTimes: Int) { | ||
|
||
private fun expectedSayHelloHelena(howManyTimes: Int): String { | ||
return List(howManyTimes) { "Hello, Helena!" }.joinToString(System.lineSeparator()) | ||
} | ||
|
||
@Test | ||
fun test() { | ||
assertEquals(expectedSayHelloHelena(howManyTimes), sayHelloHelena(howManyTimes)) | ||
} | ||
|
||
companion object { | ||
@JvmStatic | ||
@Parameterized.Parameters | ||
fun data(): List<Int> { | ||
return listOf(1, 5, 10, 100) | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...lpJonsiTask/src/main/kotlin/org/jetbrains/academy/plugin/course/dev/welcome/HelloJonsi.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package org.jetbrains.academy.plugin.course.dev.welcome | ||
|
||
fun sayHelloJonsi(howManyTimes: Int): String { | ||
return List(howManyTimes) { "Hello, Jonsi!" }.joinToString(System.lineSeparator()) | ||
} | ||
|
||
fun main() { | ||
val howManyTimes = readln().toInt() | ||
print(sayHelloJonsi(howManyTimes)) | ||
} |
12 changes: 12 additions & 0 deletions
12
introductionSection/welcomeLesson/helpJonsiTask/task-info.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
type: choice | ||
custom_name: Ready to Help Jonsi? | ||
is_multiple_choice: false | ||
options: | ||
- text: "yes" | ||
is_correct: true | ||
- text: "no" | ||
is_correct: false | ||
files: | ||
- name: src/main/kotlin/org/jetbrains/academy/plugin/course/dev/welcome/HelloJonsi.kt | ||
visible: true | ||
local_check: true |
1 change: 1 addition & 0 deletions
1
introductionSection/welcomeLesson/helpJonsiTask/task-remote-info.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
id: 853483765 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Hi! My name is Jonsi! It’s my first day at JetBrains, and I’m ready to start! But I’m really nervous of my probation week as I have no idea, how IDE works behind and what is more, how to write plugins for it. | ||
|
||
So I really need someone's help!!! | ||
|
||
Maybe you can help me? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
custom_name: Welcome and good luck! | ||
content: | ||
- helloHelenaTask | ||
- helpJonsiTask |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
psiSection/introductionToPsiLesson/IntroToPsiLesson/task-remote-info.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
id: 853483765 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...iLesson/TryPsiViewerLesson/task-info.yaml → ...iLesson/TryPsiViewerLesson/task-info.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.