The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

jeroend (23) [Avatar] Offline
in section 2.1 we read about assert:
assert(a == 1, "Disaster! A is not 1!");
If the value of variable a is not equal to one, the assertion fails and the somewhat overlydramatic)message is raised.

Isn't this a incompatible with how assert is used in the rest of the book?
(from listing 5.5 for example: assert(ninja.constructor == Ninja, #3
"The ninja object was created by the Ninja function.");

Maybe it would also be more readable if assert methods like 'assertTrue' , 'assertFalse' or 'assertUndefined' were used.