Do not run test_string_substring if no_object.

This commit is contained in:
Stephen Chung 2020-04-13 14:26:53 +08:00
parent 2e9a5f7a89
commit 254522b268
2 changed files with 1 additions and 2 deletions

View File

@ -317,8 +317,6 @@ Use `Engine::new_raw` to create a _raw_ `Engine`, in which:
let mut engine = Engine::new_raw(); // create a 'raw' Engine let mut engine = Engine::new_raw(); // create a 'raw' Engine
engine.register_stdlib(); // register the standard library manually engine.register_stdlib(); // register the standard library manually
engine.
``` ```
Evaluate expressions only Evaluate expressions only

View File

@ -35,6 +35,7 @@ fn test_string() -> Result<(), EvalAltResult> {
} }
#[cfg(not(feature = "no_stdlib"))] #[cfg(not(feature = "no_stdlib"))]
#[cfg(not(feature = "no_object"))]
#[test] #[test]
fn test_string_substring() -> Result<(), EvalAltResult> { fn test_string_substring() -> Result<(), EvalAltResult> {
let engine = Engine::new(); let engine = Engine::new();