I know that in order to run a file with assertions enabled I must run it with the --enable-asserts flag like that:
--enable-asserts