This test suite has been in use for a long time now, in place of the obsolete and unmanageable testparser.py and testfuncs.py. It verifies the complete optimizer output to stdout and stderr, to ensure that the output matches the expectations. See unit_tests/README.txt for more info.
45 lines
1.4 KiB
Plaintext
45 lines
1.4 KiB
Plaintext
[ llList2Key([], 0)
|
|
, llList2Key([""], 1)
|
|
, llList2Key([(key)"a"], 0)
|
|
, llList2Key([2], 0)
|
|
, llList2Key([llGetKey(), "x"], 1) // this generates LIST, not CONST
|
|
, llList2Key([llGetKey(), "x"], 0)
|
|
, llList2Key([llSetRegionPos(<1,1,1>), "x"], 1) // not SEF
|
|
, llList2Key([<1,0,0>],-1)
|
|
, llList2Float([1], 0)
|
|
, llList2Float([1], 1)
|
|
, llList2Float([1.], 0)
|
|
, llList2Float([PI_BY_TWO], -1)
|
|
, llList2Float(["3"], 0)
|
|
, llList2Float([(key)"3"], 0)
|
|
, llList2Float([], 0)
|
|
, llList2Integer([1], 0)
|
|
, llList2Integer([1], 1)
|
|
, llList2Integer([1.], 0)
|
|
, llList2Integer([PI_BY_TWO], -1)
|
|
, llList2Integer(["3"], 0)
|
|
, llList2Integer([(key)"3"], 0)
|
|
, llList2Integer([], 0)
|
|
, llList2Vector([<1,2,3>], 0)
|
|
, llList2Vector([<1,2,3>], -1)
|
|
, llList2Vector([<1,2,3>], 2)
|
|
, llList2Vector([<1,2,3,4>], 0)
|
|
, llList2Vector(["abc"], 0)
|
|
, llList2Vector(["<1,2,3>"], 0)
|
|
, llList2Vector([], 0)
|
|
, llList2Rot([<1,2,3,4>], 0)
|
|
, llList2Rot([<1,2,3,4>], -1)
|
|
, llList2Rot([<1,2,3,4>], 2)
|
|
, llList2Rot([<1,2,3>], 0)
|
|
, llList2Rot(["abc"], 0)
|
|
, llList2Rot(["<1,2,3,4>"], 0)
|
|
, llList2Rot([], 0)
|
|
, llList2String(["a", (key)"b", 1, PI, <1,2,3>, <1,2,3,4>], 0)
|
|
, llList2String(["a", (key)"b", 1, PI, <1,2,3>, <1,2,3,4>], -1)
|
|
, llList2String(["a", (key)"b", 1, PI, <1,2,3>, <1,2,3,4>], 1)
|
|
, llList2String(["a", (key)"b", 1, PI, <1,2,3>, <1,2,3,4>], -2)
|
|
, llList2String(["a", (key)"b", 1, PI, <1,2,3>, <1,2,3,4>], 2)
|
|
, llList2String(["a", (key)"b", 1, PI, <1,2,3>, <1,2,3,4>], -3)
|
|
, llList2String([], -3)
|
|
]
|