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

Function fail

65. Valid Number/src/main.rs:126–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

124
125 #[test]
126 fn fail() {
127 assert_eq!(Solution::is_number(String::from(" -. ")), false);
128 assert_eq!(Solution::is_number(String::from(" -90e3 ")), true);
129 assert_eq!(Solution::is_number(String::from(" ... ")), false);
130 assert_eq!(Solution::is_number(String::from(" . ")), false);
131 assert_eq!(Solution::is_number(String::from(" 5+1 ")), false);
132 assert_eq!(Solution::is_number(String::from(" 6e-1")), true);
133 assert_eq!(Solution::is_number(String::from("53.5e93")), true);
134 assert_eq!(Solution::is_number(String::from(" 1e")), false);
135 }
136
137 #[test]
138 fn leetcode() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected