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

Function edge

31. Next Permutation/src/main.rs:57–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56 #[test]
57 fn edge() {
58 let mut v1 = vec![1,1,1];
59 let v2 = vec![1,1,1];
60 Solution::next_permutation(&mut v1);
61 assert_eq!(v1,v2);
62
63 let mut v1 = vec![1];
64 let v2 = vec![1];
65 Solution::next_permutation(&mut v1);
66 assert_eq!(v1,v2);
67
68 let mut v1 = vec![];
69 let v2 = vec![];
70 Solution::next_permutation(&mut v1);
71 assert_eq!(v1,v2);
72 }
73}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected