void tearDown() { if(!d->closed_p(state)->true_p()) d->close(state); destroy(); }
void test_closed_p() { TS_ASSERT_EQUALS(d->closed_p(state), Qtrue); String* path = String::create(state, "."); d->open(state, path); TS_ASSERT_EQUALS(d->closed_p(state), Qfalse); }
void tearDown() { if(!d->closed_p(state)->true_p()) d->close(state); delete state; }