#1389 assert support?

wangzaixiang Mon 17 Jan 2011

Is there any support of "assert" operation, such as:

assert age >=0 && age <= 100;

will generate a "AssertErr of age>=0 && age <= 100"

DanielFath Mon 17 Jan 2011

I think what you're looking for is verify. See more in http://fantom.org/doc/docTools/Fant.html#writing.

That being said an assert keyword as is doesn't exist.

Login or Signup to reply.