i'm trying to test my system with timeouts and stuff, by doing malicious coding on purpose. but the above doesn't work anyway as it saysCode:class GamePlayer { int doSomeMove() { // for loop put in here deliberately to cause timeout for (;;) { } return 5; } }
Test.java:40: unreachable statement
return 5;
^
1 error
how could i make this work to test stuff?


Reply With Quote