We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84b93b2 commit 27261e3Copy full SHA for 27261e3
tests/run/reflect-select-copy2/assert_1.scala
@@ -39,9 +39,6 @@ object scalatest {
39
}
40
41
}.seal[Unit]
42
-
43
- case _ =>
44
- '{ scala.Predef.assert(~cond) }
45
46
47
tests/run/reflect-select-copy2/test_2.scala
@@ -14,10 +14,15 @@ object Test {
14
15
def main(args: Array[String]): Unit = {
16
val a = Box(Some(10))
17
+ val five: Float = 5.0f
18
+ val six: Double = 6.0
19
+ val ten: Int = 10
20
assert(a.v === Some(10))
- assert(10 > 5)
- assert(4.0 < 5)
- assert(6.0 > 5L)
21
+ assert(five < six)
22
+ assert(five > 4)
23
+ assert(ten > 5)
24
+ assert(six < 7)
25
+ assert(six > 5L)
26
assert(Box(6) > Box(6))
27
assert(Box("h") > Box("h"))
28
0 commit comments