Macaulay2 » Documentation
Packages » SimpleDoc :: testExample
next | previous | forward | backward | up | index | toc

testExample -- an example of a test string

Description

The variable testExample is a String containing an example of the use of TEST 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")           -- .276318s elapsed

See also

For the programmer

The object testExample is a string.


The source of this document is in SimpleDoc.m2:308:0.