Just to be sure - did you run the test with an assertion-enabled compiler? It always passed with a compiler without assertion checking.