mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Emphasize that byte strings are byte strings.
This commit is contained in:
parent
1e017b5c56
commit
c8aa679da0
1 changed files with 3 additions and 3 deletions
|
@ -535,7 +535,7 @@ def do_tests():
|
|||
shouldexcept('div(NaN, 1)', ELSLMathError)
|
||||
shouldexcept('div(1, NaN)', ELSLMathError)
|
||||
shouldexcept('div(F32(1e40), F32(1e40))', ELSLMathError)
|
||||
shouldexcept('zstr("blah")', ELSLInvalidType)
|
||||
shouldexcept('zstr(b"blah")', ELSLInvalidType)
|
||||
test('div(1, 9)', 0)
|
||||
test('div(8, 9)', 0)
|
||||
test('div(9, 9)', 1)
|
||||
|
@ -619,8 +619,8 @@ def do_tests():
|
|||
shouldexcept('mul(1.,Quaternion((1.,2.,3.,4.)))', ELSLTypeMismatch)
|
||||
shouldexcept('mul(Quaternion((1.,2.,3.,4.)),1.)', ELSLTypeMismatch)
|
||||
shouldexcept('mul(Quaternion((1.,2.,3.,4.)),Vector((1.,2.,3.)))', ELSLTypeMismatch)
|
||||
shouldexcept('mul("a",3)', ELSLInvalidType)
|
||||
shouldexcept('mul(Vector((3.,4.,5.)),"a")', ELSLInvalidType)
|
||||
shouldexcept('mul(b"a",3)', ELSLInvalidType)
|
||||
shouldexcept('mul(Vector((3.,4.,5.)),b"a")', ELSLInvalidType)
|
||||
shouldexcept('typecast([1,F32(3.14),Key(u"blah"),Quaternion((1.,0.,0.,0.))], Vector)',
|
||||
ELSLTypeMismatch)
|
||||
shouldexcept('typecast(b"", unicode)', ELSLInvalidType)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue