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

Function basic

29. Divide Two Integers/src/main.rs:38–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36
37 #[test]
38 fn basic() {
39 assert_eq!(Solution::divide(10, 3), 3);
40 assert_eq!(Solution::divide(7, -3), -2);
41 assert_eq!(Solution::divide(7, -7), -1);
42 assert_eq!(Solution::divide(7, -8), 0);
43 assert_eq!(Solution::divide(-7, 3), -2);
44 assert_eq!(Solution::divide(-7, 33), 0);
45 assert_eq!(Solution::divide(10, 3), 3);
46 }
47
48 #[test]
49 fn edge() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected