Permalink
Browse files

Fix arguments order

  • Loading branch information...
julienrf committed Jan 25, 2017
1 parent 7278b76 commit fed99499f32737d1327ff8b06ad405210ff6e4dc
@@ -119,9 +119,9 @@ object TermsAndTypes extends ScalaTutorialSection {
* number, and the `toUpperCase` method returns the target `String` in
* upper case.
*/
def methods(res0: Int, res1: String): Unit = {
"Hello, Scala!".toUpperCase shouldBe res1
-42.abs shouldBe res0
def methods(res0: String, res1: Int): Unit = {
"Hello, Scala!".toUpperCase shouldBe res0
-42.abs shouldBe res1
}
/**
@@ -13,7 +13,7 @@ class TermsAndTypesSpec extends Spec with Checkers {
}
def `check methods`: Unit = {
check(Test.testSuccess(TermsAndTypes.methods _, 42 :: "HELLO, SCALA!" :: HNil))
check(Test.testSuccess(TermsAndTypes.methods _, "HELLO, SCALA!" :: 42 :: HNil))
}
// def `static typing`: Unit = {

0 comments on commit fed9949

Please sign in to comment.