mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-02 08:08:20 +00:00
Calculate llFrand's min and max when possible
This commit is contained in:
parent
65326115d8
commit
bf505220ac
8 changed files with 79 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
// Test that there's at least one 7-digit number
|
||||
[ llFrand(16777216)
|
||||
, llFrand(16777216)
|
||||
, llFrand(16777216)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// Test that there's at least one 8-digit number
|
||||
[ llFrand(16777216)
|
||||
, llFrand(16777216)
|
||||
, llFrand(16777216)
|
||||
|
|
23
unit_tests/expr.suite/llfrand-3.lsl
Normal file
23
unit_tests/expr.suite/llfrand-3.lsl
Normal file
|
@ -0,0 +1,23 @@
|
|||
[ llFrand(-5)
|
||||
, llFrand(-5.0)
|
||||
, llFrand(-5)
|
||||
, llFrand(-5.0)
|
||||
, llFrand(-5)
|
||||
, llFrand(-5.0)
|
||||
, llFrand(-5)
|
||||
, llFrand(-5.0)
|
||||
, llFrand(-5)
|
||||
, llFrand(-5.0)
|
||||
, llFrand(-5)
|
||||
, llFrand(-5.0)
|
||||
, llFrand(-5)
|
||||
, llFrand(-5.0)
|
||||
, llFrand(-5)
|
||||
, llFrand(-5.0)
|
||||
, llFrand(-5)
|
||||
, llFrand(-5.0)
|
||||
, llFrand(-5)
|
||||
, llFrand(-5.0)
|
||||
, llFrand(-5)
|
||||
, llFrand(-5.0)
|
||||
]
|
3
unit_tests/expr.suite/llfrand-3.out
Normal file
3
unit_tests/expr.suite/llfrand-3.out
Normal file
|
@ -0,0 +1,3 @@
|
|||
REGEX
|
||||
(?:[\[,] -[0-4]\.[0-9]*
|
||||
){22}\]
|
Loading…
Add table
Add a link
Reference in a new issue