Macaulay2 » Documentation
Packages » Macaulay2Doc :: generateAssertions
next | previous | forward | backward | up | index | toc

generateAssertions -- generate assert statements from experimental input

Synopsis

Description

i1 : generateAssertions ///
     2+2
     2^20
     ///

o1 = 
     assert( (2+2) === 4 );
     assert( (2^20) === 1048576 );
i2 : value \ unstack oo

o2 = {, }

o2 : List

Ways to use generateAssertions :

For the programmer

The object generateAssertions is a method function.