Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sijarsu authored and mkrzemien committed Jun 7, 2020
1 parent 3935a4c commit eda0a5d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
17 changes: 12 additions & 5 deletions tests/src/test/resources/test-cases/_t142.success
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
class A()
class B(val oa: Option[A])

object TestSome {
val a = new A()
val b = wire[B]
object TestSomeOption {
val a = new A()
val oa = Some(new A())
val b = wire[B]
}

object TestSomeValue {
val a = new A()
val b = wire[B]
}

object TestNone {
val b = wire[B]
val b = wire[B]
}

require(TestSome.b.oa.contains(TestSome.a))
require(TestSomeOption.b.oa.contains(TestSomeOption.oa.get))
require(TestSomeValue.b.oa.contains(TestSomeValue.a))
require(TestNone.b.oa.isEmpty)
10 changes: 5 additions & 5 deletions tests/src/test/resources/test-cases/_t142_nested.success
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ class A()
class B(val oa: Option[Option[A]])

object TestSome {
val a = Some(new A())
val b = wire[B]
val a = Some(new A())
val b = wire[B]
}

object TestNestedSome {
val a = new A()
val b = wire[B]
val a = new A()
val b = wire[B]
}

object TestNone {
val b = wire[B]
val b = wire[B]
}

require(TestSome.b.oa.contains(TestSome.a))
Expand Down

0 comments on commit eda0a5d

Please sign in to comment.