From 371b7fd00bb738863e4b105abc4cd96f355c642c Mon Sep 17 00:00:00 2001 From: Stephen Chung Date: Sat, 26 Sep 2020 00:46:47 +0800 Subject: [PATCH] Fix tests. --- .../ui_tests/rhai_fn_rename_collision_oneattr_multiple.stderr | 2 +- tests/string.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/codegen/ui_tests/rhai_fn_rename_collision_oneattr_multiple.stderr b/codegen/ui_tests/rhai_fn_rename_collision_oneattr_multiple.stderr index 78770b8d..67b9eef5 100644 --- a/codegen/ui_tests/rhai_fn_rename_collision_oneattr_multiple.stderr +++ b/codegen/ui_tests/rhai_fn_rename_collision_oneattr_multiple.stderr @@ -2,7 +2,7 @@ error: duplicate Rhai signature for 'bar' --> $DIR/rhai_fn_rename_collision_oneattr_multiple.rs:17:15 | 17 | #[rhai_fn(get = "bar")] - | ^^^ + | ^^^^^^^^^^^ error: duplicated function renamed 'bar' --> $DIR/rhai_fn_rename_collision_oneattr_multiple.rs:12:15 diff --git a/tests/string.rs b/tests/string.rs index 786ec106..13f78640 100644 --- a/tests/string.rs +++ b/tests/string.rs @@ -188,6 +188,7 @@ fn test_string_fn() -> Result<(), Box> { } #[cfg(not(feature = "no_object"))] +#[cfg(not(feature = "no_index"))] #[test] fn test_string_split() -> Result<(), Box> { let engine = Engine::new();