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

Function makenode

2. Add Two Numbers/src/main.rs:154–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152
153 #[test]
154 fn makenode() {
155 assert_eq!(Solution::make_node(10), (ListNode{val:0, next:None}, 1));
156 assert_eq!(Solution::make_node(9), (ListNode{val:9, next:None}, 0));
157 assert_eq!(Solution::make_node(20), (ListNode{val:10, next:None}, 1));
158 }
159
160 #[test]
161 fn init() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected