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

Function edge

61. Rotate List/src/main.rs:111–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

109
110 #[test]
111 fn edge() {
112 assert_eq!(
113 Solution::rotate_right(None, 4),
114 None
115 );
116 assert_eq!(
117 Solution::rotate_right(Some(Box::new(ListNode { val: 1, next: None })), 1),
118 Some(Box::new(ListNode { val: 1, next: None }))
119 )
120 }
121}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected