next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: generateAssertions

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 :