void test_open() { String* path = String::create(state, "."); TS_ASSERT_EQUALS(d->open(state, path), Qnil); TS_ASSERT(!d->data()->nil_p()); }
void test_close() { String* path = String::create(state, "."); d->open(state, path); TS_ASSERT_EQUALS(d->close(state), Qtrue); TS_ASSERT(d->data()->nil_p()); }
void test_create() { TS_ASSERT(kind_of<Dir>(d)); TS_ASSERT(d->data()->nil_p()); }