Skip to content

Latest commit

 

History

History
12 lines (11 loc) · 1.08 KB

more-methods.md

File metadata and controls

12 lines (11 loc) · 1.08 KB

More Methods

Method What it's for Example
xtest ignore a test xtest(name) {
  one or more assertions
}
truthTable truth table for a tabulated test val multTable = truthTable(
  (1, 4)   -> tval(4),
  (2, 6)   -> tval(12),
  (5, 10)  -> tval(50),
  (7, 7)   -> tval(49),
  (-2, -1) -> tval(2),
  (10, 20) -> tval(200)
)
tval truth table value (2, 6) -> tval(12)
table tabulated test
table[(Int, Int), Int]("Multiplication", multTable)(n => n._1 * n._2)
oneOrMore create a NonEmptySeq override val tests = oneOrMore(test1, test2)
seq() run Assertions sequentially 1 =?= 1 | "onsies" and
 2 =?= 2 | "twosies" seq()
ind() run Assertions independently. This is the default 1 =?= 1 | "onsies" and
 2 =?= 2 | "twosies" ind()