Community
Participate
Working Groups
package mine; handler Minor type RUIhandler{initialUI =[], onConstructionFunction = start, cssFile = "css/ZZTest.css", title = "Minor"} function start() syslib.writestdout("starting"); testing(); testing2(); syslib.writestdout("stopping"); end function testing() intActual int = 75 % 2; intExpect int = 1; syslib.writestdout("75 % 2"); if (intActual == intExpect) syslib.writestdout("good"); else syslib.writeStdout("bad " + intActual ); end end function testing2() intActual int = 75 % -2; intExpect int = 1; syslib.writestdout("75 % -2"); if (intActual == intExpect) syslib.writestdout("good"); else syslib.writeStdout("bad " + intActual ); end end end generates this output starting 75 % 2 bad NaN 75 % -2 bad NaN stopping
Created attachment 205213 [details] EGL source code Additional test variations issue with smallint
I hit this problem today and it was blocking me, so I fixed part of it. Updated FloatTypeTemplate, SmallfloatTypeTemplate, and SmallintTypeTemplate. The two variations you have commented out still fail, but the others now work. The problem had to do with an extra set of parens being generated, e.g. "egl.remainder((1,2))" instead of "egl.remainder(1,2)".
this defect has been resolved. commented out variations are covered by another defect 360947
verified with 201110210902 and closed