[m-users.] Testing framework

Sean Charles (emacstheviking) objitsu at gmail.com
Sun May 23 06:25:38 AEST 2021


I rolled a very simple one and it seems to have gone well, I can now add more tests to my lexer package and to the rest of the code as I write it. A typical output from the test Makefile process:


Running some lexer tests...
 ✓ test passed: line: 0028      ( ) [ ] { }
 ✓ test passed: line: 0032  Stock-Token
 ✓ test passed: line: 0033  /*Blocked*/
 ✓ test passed: line: 0034  ;Say it

✘ test failed: line: 0035
exp: [s1(pos(0, 1, 9), "string1")]
got: [s1(pos(0, 1, 0), "string1")]

 ✓ test passed: line: 0036 “string2"


Glorious monochrome but good enough, I could stick some ANSI colour code sin but who needs it? Who needs rhetorical questions in general?
Thanks.
:)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/users/attachments/20210522/3392c236/attachment.html>


More information about the users mailing list