iets3.opensource
iets3.opensource copied to clipboard
Syntax of optional name in assert test items confusing
Example:
fourtyTwo = assert lambda.exec() equals 47
The name fourtyTwo
is assigned to this assert item and can be used in the following assert test items. While it is true that this is an assignment, it is completely unclear what's happening when you are not familiar with this name. Maybe we need a var
keyword in front of the variable.
Personally, I would prefer something similar to the Haskell As-Pattern: assert@fourtyTwo lambda.exec() equals 47