diff --git a/core/src/tests.rs b/core/src/tests.rs index 9e179f9f..14d67829 100644 --- a/core/src/tests.rs +++ b/core/src/tests.rs @@ -53,17 +53,19 @@ fn similar_contains() { }; } - //assert!(is_contains!("hello", "hello")); - //assert!(is_contains!("hello?", "hello")); - //assert!(is_contains!("hhheeeeelllloo!!", "hello")); - //assert!(is_contains!("hh-he e ee!e!ll/l/lo//o-?", "hello")); - // - //assert!(is_contains!("-!?hel$2-hello?", "hello")); - //assert!(is_contains!("-!?hel$2-hhheeeeelllloo!!", "hello")); - //assert!(is_contains!("-!?hel$2-hh-he e ee!e!ll/l/lo//o-?", "hello")); + assert!(is_contains!("hello", "hello")); + assert!(is_contains!("hello?", "hello")); + assert!(is_contains!("hhheeeeelllloo!!", "hello")); + assert!(is_contains!("hh-he e ee!e!ll/l/lo//o-?", "hello")); + assert!(is_contains!("-!?hel$2-hello?", "hello")); + assert!(is_contains!("-!?hel$2-hhheeeeelllloo!!", "hello")); + assert!(is_contains!("-!?hel$2-hh-he e ee!e!ll/l/lo//o-?", "hello")); + + assert!(!is_contains!("eel", "ell")); + assert!(!is_contains!("ell", "eel")); assert!(!is_contains!("-!?hel", "hell")); - //assert!(!is_contains!("ello?", "hello")); + assert!(!is_contains!("ello?", "hello")); } #[test]