Skip to content

Commit e628e97

Browse files
committed
increase test coverage, case of null -> Option[UUID]
1 parent e6d1dd6 commit e628e97

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/scala/org/squeryl/test/UuidTests.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ abstract class UuidTests extends SchemaTester with RunTestsInsideTransaction{
7777

7878
uuidWithOption.lookup(testObject.id).get.optionalUuid should equal(Some(uuid))
7979

80+
update(uuidWithOption)(p =>
81+
where(p.id === testObject.id)
82+
set(p.optionalUuid := None)
83+
)
84+
85+
uuidWithOption.lookup(testObject.id).get.optionalUuid should equal(None)
8086
}
8187

8288
test("UuidAsId") {

0 commit comments

Comments
 (0)