()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected