MCPcopy Create free account
hub / github.com/Ainevsia/Leetcode-Rust / basic

Function basic

Sliding Window/76. Minimum Window Substring/src/main.rs:53–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52 #[test]
53 fn basic() {
54 assert_eq!(Solution::min_window(String::from("ADOBECODEBANC"), String::from("ABC")), String::from("BANC"));
55 assert_eq!(Solution::min_window(String::from("ADOBECODEBANC"), String::from("ABCD")), String::from("ADOBEC"));
56 assert_eq!(Solution::min_window(String::from("ADOBECODEBANC"), String::from("ABF@CD")), String::from(""));
57
58
59 }
60}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected