Skip to content

Commit

Permalink
Revert "Moved snippet about top-level functions to the implementation…
Browse files Browse the repository at this point in the history
… location"

This reverts commit 7e09e4a.
  • Loading branch information
sdavids13 committed Jan 22, 2017
1 parent 7e09e4a commit 101d20a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
/*
In Kotlin functions can be declared at top level in a file, meaning
you do not need to create a class to hold a function, like languages
such as Java, C# or Scala.
http://kotlinlang.org/docs/reference/functions.html#function-scope
*/

fun transcribeToRna(dna: String): String = ""
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@ import org.junit.Test;

class RnaTranscriptionTest {

/*
In Kotlin functions can be declared at top level in a file, meaning
you do not need to create a class to hold a function, like languages
such as Java, C# or Scala.
http://kotlinlang.org/docs/reference/functions.html#function-scope
*/

@Test
fun emptyDnaIsEmptyRna() {
Assert.assertEquals("", transcribeToRna(""));
Expand Down

0 comments on commit 101d20a

Please sign in to comment.