You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In normal operations we use the parser to collect the checklist. However, in some cases you want to write tests for things that are not functions. For instance if you have some configuration over a set of literal values or constants that should have a desired behavior you want to make sure this is tested, even if it technically isn't a unit test of some code.
For a global value you want to test:
GLOBAL_MAGIC_NUM=113# checklist:
from ... importGLOBAL_MAGIC_NUM@pointer(target=GLOBAL_MAGIC_NUM)deftest_GLOBAL_MAGIC_NUM():
assertGLOBAL_MAGIC_NUM<137assertGLOBAL_MAGIC_NUM>93
In normal operations we use the parser to collect the checklist. However, in some cases you want to write tests for things that are not functions. For instance if you have some configuration over a set of literal values or constants that should have a desired behavior you want to make sure this is tested, even if it technically isn't a unit test of some code.
For a global value you want to test:
Further consider a table of regexes:
You want to expect tests for each entry in that list so you would annotate as shown in the snippet and then write tests like:
The text was updated successfully, but these errors were encountered: