[Laszlo-dev] fixing the smoketest in swf9

Henry Minsky hminsky at laszlosystems.com
Wed Oct 22 08:26:37 PDT 2008


There's a couple of tests failing in smokecheck for swf9.
Most of them are of the form:

TestFailure:  >>> testTextFormat failed: Equals:  expected '  {one: 1, two:
too, 3: three}' got '  {two: too, 3: three, one: 1}'

where obviously the order of iteration is not deterministic.

Is there some easy way we can write this object formatting test that doesn't
depend on the ordering of the elements? Maybe
I could just write this test as three separate tests  on {one: 1}, {two:
'two'}, and {3: 'three'} ?  Or else I guess we could make the object
formatter sort the elements when printing them...







-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20081022/ff41af87/attachment.html


More information about the Laszlo-dev mailing list