Added unit test using C99 INFINITY. This test actually tests a float

conversion bug where converting to float imposed overflow checking which
should not be there and causes this program to error out. This was seen
originally in Javascript, but it turns out Python has the same bug. Lua
does not have this bug. Other generators have not been tested.

This test also tests the rename feature. The Javascript generator was
not renaming the variable correctly.
This commit is contained in:
Eric Wing 2013-09-05 14:50:15 -07:00 committed by Oliver Buchtala
commit e01e337d75
2 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,4 @@
var my_infinity = infinity.INFINTY;
var ret_val = infinity.use_infinity(my_infinity);