The main work i think:
1. copy the test_rand.rb to the sample directory, and turn it to the
proper format just like other tests.
2. implement RubyKernelModule#srand, RubyKernelModule#rand method
3. make the test pass. Also, RubyCompilerTest.java file should have
the related test.
Does that right? Or do i miss something? Thanks.
1. Dreamhead may know this better, would you please take a look of this one?
2. I think as long as the tests passes, it is ok to use a different algorithm.
3. I got 404 error for the two urls, it looks like the pages are no
longer there.
> > ------------------------------
> > Help yourself to FREE treats served up daily at the Messenger Café. Stop
> > by
> today!<http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline>
> > >
> >
>
> >
>
@RubyLevelModule(name="Kernel")
public class RubyRandom {
...
}
Currently, we need register this in RubyRuntime with
RubyTypeFactory.getModule. The code will be like this.
RubyTypeFactory.getModule(RubyRandom.class);
Ye Zheng
2007/11/9, Xue Yong Zhi <xue.yo...@gmail.com>:
--
Everything is simple!
Ye Zheng
2007/11/10, sishen <yedin...@gmail.com>:
--
Everything is simple!
Have you submitted your code? I've tried current code in SVN, but it
works. I can't reproduce you problem.
2007/11/10, sishen <yedin...@gmail.com>:
--
Everything is simple!
> com.xruby.runtime.lang.RubyProgram.invoke (RubyProgram.java:18)
Ye Zheng
--
Everything is simple!
> com.xruby.runtime.lang.RubyAPI.callMethodMissing (RubyAPI.java:152)
> > > > > at
> > > com.xruby.runtime.lang.RubyAPI.callNoArgMethod
> > > > > (RubyAPI.java:177)
> > > > > at xruby.STDIN.main.run (Unknown Source)
> > > > > at
> > > > >
> > > com.xruby.runtime.lang.RubyProgram.invoke
> (RubyProgram.java:18)
> > > > > at
> > > > >
> > >
> com.xruby.runtime.lang.RubyProgram.invoke(RubyProgram.java:14)
> > > > > at com.xruby.Main.run(Main.java :122)
> > > > > at com.xruby.Main.run (Main.java:49)