Skip to content

Commit ba2245e

Browse files
authored
Adding a IfCompilesTest file to new_branch (#806)
* Adding a IfCompilesTest file to new_branch * Adding a IfCompilesTest file to branchtest * Update IfCompilesTest * Update IfCompilesTest, comments * Update IfCompilesTest file * Update IfCompilesTest file * Update IfCompilesTest file * Update IfCompilesTest
1 parent 46aa9bb commit ba2245e

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"args":["/home/mboizi/Documents/code/scala/scala-tutorials/scala-test/src/test/scala-2/com/baeldung/scala/scalatest"]}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.baeldung.scala.scalatest
2+
3+
import org.scalatest.flatspec.AnyFlatSpec
4+
import org.scalatest.matchers.should.Matchers
5+
6+
class IfCompilesTest extends AnyFlatSpec with Matchers {
7+
8+
"val x: Int = 2" should compile
9+
10+
// "val x: Int = 248" shouldNot compile
11+
// "val x: Int = 2.0" shouldNot typeCheck
12+
}

0 commit comments

Comments
 (0)