Beispiel #1
0
 void test_open() {
   String* path = String::create(state, ".");
   TS_ASSERT_EQUALS(d->open(state, path), Qnil);
   TS_ASSERT(!d->data()->nil_p());
 }
Beispiel #2
0
 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());
 }
Beispiel #3
0
 void test_create() {
   TS_ASSERT(kind_of<Dir>(d));
   TS_ASSERT(d->data()->nil_p());
 }