From 254522b268492e031fa50d186552f92ca151e5ee Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Mon, 13 Apr 2020 14:26:53 +0800 Subject: [PATCH] Do not run test_string_substring if no_object. --- README.md | 2 -- tests/string.rs | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 26d12ee8..2f21cc07 100644 --- a/README.md +++ b/README.md @@ -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 engine.register_stdlib(); // register the standard library manually - -engine. ``` Evaluate expressions only diff --git a/tests/string.rs b/tests/string.rs index af974ae1..1ec77e2e 100644 --- a/tests/string.rs +++ b/tests/string.rs @@ -35,6 +35,7 @@ fn test_string() -> Result<(), EvalAltResult> { } #[cfg(not(feature = "no_stdlib"))] +#[cfg(not(feature = "no_object"))] #[test] fn test_string_substring() -> Result<(), EvalAltResult> { let engine = Engine::new();