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

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.03804 seconds elapsed

See also

For the programmer

The object testExample is a string.