vermaseren / form

The FORM project for symbolic manipulation of very big expressions
GNU General Public License v3.0
985 stars 118 forks source link

test(check.rb): add optional expected_message for error/warning checks #501

Closed tueda closed 1 month ago

tueda commented 1 month ago

This may be good for writing test cases that give errors/warnings.

Example:

*--#[ example :
Table t(1:3);
Fill t(1) = 1;
Fill t(1) = 2;
.end
assert warning?("Table element was already defined")
*--#] example :
coveralls commented 1 month ago

Coverage Status

coverage: 48.516% (+0.01%) from 48.502% when pulling d8a8c82c4d11bc15d46218e635bb829ba1e0f8d4 on tueda:test-expected-message into a113449cea96d21697a56a8cf0e277ee05cdd697 on vermaseren:master.