Difference between revisions of "Talk:LSL Language Test"

From Second Life Wiki
Jump to navigation Jump to search
(New page: <lsl> // post increment. i = 1; ensureIntegerEqual("i = 1; (i == 2) && (i++ == 1)", (i == 2) && (i++ == 1), TRUE); // pre increment. i = 1; ensureIntegerEqu...)
 
(New section: LSO failure)
Line 15: Line 15:
     ensureIntegerEqual("i = 2; (i == 1) && (--i == 1)", (i == 1) && (--i == 1), TRUE);</lsl>
     ensureIntegerEqual("i = 2; (i == 1) && (--i == 1)", (i == 1) && (--i == 1), TRUE);</lsl>
These tests are good for LSO-LSL but do we want to propagate this order of execution to Mono-LSL? -- [[User:Strife Onizuka|Strife Onizuka]] 19:16, 7 December 2007 (PST)
These tests are good for LSO-LSL but do we want to propagate this order of execution to Mono-LSL? -- [[User:Strife Onizuka|Strife Onizuka]] 19:16, 7 December 2007 (PST)
== LSO failure ==
Is this expected under the existing system?
  FAILED: testReturnFloat() (0.000000 expected 1.000000)
It only happens if you try returning an int as a float - returning a float as a float works as expected. I can't test behaviour under mono because there isn't a TG beta grid. - [[User:Katharine Berry|Katharine Berry]] 11:08, 4 February 2008 (PST)

Revision as of 11:08, 4 February 2008

<lsl> // post increment.

   i = 1;
   ensureIntegerEqual("i = 1; (i == 2) && (i++ == 1)", (i == 2) && (i++ == 1), TRUE);
       
   // pre increment.
   i = 1;
   ensureIntegerEqual("i = 1; (i == 2) && (++i == 2)", (i == 2) && (++i == 2), TRUE);
       
   // post decrement.
   i = 2;
   ensureIntegerEqual("i = 2; (i == 1) && (i-- == 2)", (i == 1) && (i-- == 2), TRUE);
       
   // pre decrement.
   i = 2;
   ensureIntegerEqual("i = 2; (i == 1) && (--i == 1)", (i == 1) && (--i == 1), TRUE);</lsl>

These tests are good for LSO-LSL but do we want to propagate this order of execution to Mono-LSL? -- Strife Onizuka 19:16, 7 December 2007 (PST)

LSO failure

Is this expected under the existing system?

 FAILED: testReturnFloat() (0.000000 expected 1.000000)

It only happens if you try returning an int as a float - returning a float as a float works as expected. I can't test behaviour under mono because there isn't a TG beta grid. - Katharine Berry 11:08, 4 February 2008 (PST)