Register property versions of some methods.
This commit is contained in:
@@ -26,7 +26,7 @@ fn test_arrays() -> Result<(), Box<EvalAltResult>> {
|
||||
let y = [4, 5];
|
||||
x.append(y);
|
||||
|
||||
x.len() + r
|
||||
x.len + r
|
||||
"
|
||||
)?,
|
||||
14
|
||||
|
@@ -48,7 +48,7 @@ fn test_for_object() -> Result<(), Box<EvalAltResult>> {
|
||||
sum += value;
|
||||
}
|
||||
|
||||
keys.len() + sum
|
||||
keys.len + sum
|
||||
"#;
|
||||
|
||||
assert_eq!(engine.eval::<INT>(script)?, 9);
|
||||
|
@@ -1,4 +1,3 @@
|
||||
#![cfg(not(feature = "no_stdlib"))]
|
||||
#![cfg(not(feature = "no_std"))]
|
||||
|
||||
use rhai::{Engine, EvalAltResult, INT};
|
||||
|
Reference in New Issue
Block a user