| var hasBasicBlockExecuted = $vm.hasBasicBlockExecuted; |
| load("./driver/driver.js"); |
| assert(!hasBasicBlockExecuted(testSwitch, "switch"), "should not have executed yet."); |
| assert(hasBasicBlockExecuted(testSwitch, "switch"), "should have executed."); |
| assert(hasBasicBlockExecuted(testSwitch, "return a"), "should have executed."); |
| assert(!hasBasicBlockExecuted(testSwitch, "return b"), "should not have executed yet."); |
| assert(!hasBasicBlockExecuted(testSwitch, "return c"), "should not have executed yet."); |
| assert(hasBasicBlockExecuted(testSwitch, "return b"), "should have executed."); |
| assert(!hasBasicBlockExecuted(testSwitch, "return c"), "should not have executed yet."); |
| assert(hasBasicBlockExecuted(testSwitch, "return c"), "should have executed."); |