kotlin icon indicating copy to clipboard operation
kotlin copied to clipboard

Inconsistencies in Hello World - Tutorial.md

Open foundingnimo opened this issue 3 years ago • 0 comments

Tutorial.md in Hello world has diverged from the code.

  1. It says the test fails with org.junit.ComparisonFailure: expected:<[Hello, World!]> but was:<[]> but actual failure is org.junit.ComparisonFailure: expected:<[Hello, World]!> but was:<[Goodbye, Mars]!>

  2. It says the :compileKotlin task should emit a warning: w: /Users/jtigger/exercism/exercises/kotlin/hello-world/src/main/kotlin/HelloWorld.kt: (1, 11): Parameter 'name' is never used

But that parameter isn't actually in the fun declaration

  1. It says that hello() returns "" - but it actually returns Goodbye, Mars!

foundingnimo avatar Nov 17 '22 05:11 foundingnimo