Skip to content

Commit

Permalink
Improve CharTypesSpec
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Ishikawa committed May 1, 2018
1 parent 7538f08 commit 3378375
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,15 @@ class CharTypesSpec extends Properties("CharTypes") {
LowerCaseChar.from('a').isRight
}

property("LowerCaseChar.from('A')") = secure {
LowerCaseChar.from('A') ?= Left("Predicate failed: isLower('A').")
}

property("UpperCaseChar.from('A')") = secure {
UpperCaseChar.from('A').isRight
}

property("UpperCaseChar.from('a')") = secure {
UpperCaseChar.from('a') ?= Left("Predicate failed: isUpper('a').")
}
}

0 comments on commit 3378375

Please sign in to comment.