We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e1e4530 + 307252e commit c6295adCopy full SHA for c6295ad
exercises/conversions/as_ref_mut.rs
@@ -36,4 +36,16 @@ mod tests {
36
let s = "Cafe au lait";
37
assert_eq!(char_counter(s), byte_counter(s));
38
}
39
+
40
+ #[test]
41
+ fn different_counts_using_string() {
42
+ let s = String::from("Café au lait");
43
+ assert_ne!(char_counter(s.clone()), byte_counter(s));
44
+ }
45
46
47
+ fn same_counts_using_string() {
48
+ let s = String::from("Cafe au lait");
49
+ assert_eq!(char_counter(s.clone()), byte_counter(s));
50
51
0 commit comments