On Wed, Jul 15, 2009 at 10:46:45AM +0200, Vegard Nossum wrote:
> 2009/7/15 Eduard - Gabriel Munteanu <eduard.munte...@linux360.ro>:
> > Provide a test case for passing lots of parameters. This proves useful
> > to test things such as register parameters.
> >
> > Signed-off-by: Eduard - Gabriel Munteanu <eduard.munte...@linux360.ro>

[snip]

> I think we can improve this by extending the TestCase class and using
> assertEquals, i.e.:
> 
> int result = add(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
> assertEquals(result, 55);
> 
> and that means we don't need the exit() (nor the "import for VM").

Actually, it's useful as it is because we test with one register
parameter (the call to VM.exit()) and with multiple parameters (register
+ stack).

> Also, shouldn't this test-case be added to regression/run-suite.sh as well?

Fixed, thanks.


        Eduard


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to