// ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓ // ┃ __ _ ____ ______ ┃ // ┃ ____ / /_ (_)______ __/ __ \/ ____/ ┃ // ┃ / __ \/ __ \/ / ___/ / / / /_/ / / ┃ // ┃ / /_/ / / / / (__ ) /_/ / _, _/ /___ ┃ // ┃ / .___/_/ /_/_/____/\__, /_/ |_|\____/ ┃ // ┃ /_/ /____/ ┃ // ┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫ // ┃ Copyright: (c) 2023, Mike 'PhiSyX' S. (https://github.com/PhiSyX) ┃ // ┃ SPDX-License-Identifier: MPL-2.0 ┃ // ┃ ╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ┃ // ┃ ┃ // ┃ This Source Code Form is subject to the terms of the Mozilla Public ┃ // ┃ License, v. 2.0. If a copy of the MPL was not distributed with this ┃ // ┃ file, You can obtain one at https://mozilla.org/MPL/2.0/. ┃ // ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛ use lexa_wildcard_matching::WildcardMatching; #[test] fn test_iswm_simple() { assert!("test".iswm("test")); assert!("TEST".iswm("test")); assert!(!"test".iswm("failed")); assert!("test".iswm("tESt")); assert!("TEST".iswmcs("TEST")); assert!(!"TEST".iswmcs("test")); assert!("tESt".iswmcs("tESt")); assert!(!"TEST".iswmcs("tESt")); }