Re: assert in EUPHORIA
- Posted by petelomax Apr 23, 2012
- 1362 views
DerekParnell said...
Although this will perform the testing correctly, it misses out on a couple of the useful aspects of the 'assert' concept.
- It always executes the test. The assert is intended to only execute the test during the development phase of the application.
That is what I was going to say about your assert.e; although it may not actually test whether x is 0 when "switched off", it will still calculate x, which may be expensive.
Regards, Pete