Last active
August 29, 2015 14:16
-
-
Save yukinagae/074eb5c9dad472bd1382 to your computer and use it in GitHub Desktop.
【STEP5】デバッグ(eclipse) : Scalaでコードを書く ref: http://qiita.com/yukinagae/items/50dc53273887da5fd3ad
This file contains hidden or 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
| import org.scalatest._ | |
| import org.scalatest.matchers.ShouldMatchers | |
| class HelloSpec extends FlatSpec with ShouldMatchers { | |
| "Hello" should "have tests" in { | |
| var result = 1 + 1 | |
| println(result) | |
| result should be === 2 | |
| } | |
| } |
This file contains hidden or 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
| object Main { | |
| def main(args: Array[String]) { | |
| var a = 1 | |
| println(a) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment