mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 21:44:30 +02:00
Add tests for rb_time_timespec_new
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
68ebbbfebe
commit
4dedfc3cc9
4 changed files with 91 additions and 0 deletions
11
ext/-test-/time/init.c
Normal file
11
ext/-test-/time/init.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include "ruby.h"
|
||||
|
||||
#define init(n) {void Init_##n(VALUE klass); Init_##n(klass);}
|
||||
|
||||
void
|
||||
Init_time(void)
|
||||
{
|
||||
VALUE mBug = rb_define_module("Bug");
|
||||
VALUE klass = rb_define_class_under(mBug, "Time", rb_cTime);
|
||||
TEST_INIT_FUNCS(init);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue