next | previous | forward | backward | up | top | index | toc | Macaulay2 website
SimpleDoc :: testExample

testExample -- an example of a test string

Synopsis

Description

The variable testExample is a String containing an example of the use of TEST(String) to write a test case.

TEST /// -* test for simpleDocFrob *-
  assert(simpleDocFrob(2,matrix{{1,2}}) == matrix{{1,2,0,0},{0,0,1,2}})
///

The check method executes all package tests defined this way.

i1 : check SimpleDoc
 -- capturing check(0, "SimpleDoc")                                          -- 0.0630673 seconds elapsed

See also

For the programmer

The object testExample is a string.