Lines Matching refs:assert_eq

16     assert_eq!("hello", t.as_str().unwrap());
17 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
18 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
19 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
22 assert_eq!("hello", Arg::as_str(&t).unwrap());
23 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
24 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
25 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
28 assert_eq!("hello", t.as_str().unwrap());
29 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
30 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
31 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
34 assert_eq!("hello", t.as_str().unwrap());
35 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
36 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
37 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
40 assert_eq!("hello", t.as_str().unwrap());
41 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
42 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
43 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
46 assert_eq!("hello", t.as_str().unwrap());
47 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
48 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
49 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
52 assert_eq!("hello", t.as_str().unwrap());
53 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
54 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
55 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
58 assert_eq!("hello", t.as_str().unwrap());
59 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
60 assert_eq!(
64 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
67 assert_eq!("hello", t.as_str().unwrap());
68 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
69 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
70 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
73 assert_eq!("hello", t.as_str().unwrap());
74 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
75 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
76 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
79 assert_eq!("hello", t.as_str().unwrap());
80 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
81 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
82 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
85 assert_eq!("hello", t.as_str().unwrap());
86 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
87 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
88 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
91 assert_eq!("hello", t.as_str().unwrap());
92 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
93 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
94 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
97 assert_eq!("hello", t.as_str().unwrap());
98 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
99 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
100 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
103 assert_eq!("hello", t.as_str().unwrap());
104 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
105 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
106 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
109 assert_eq!("hello", t.as_str().unwrap());
110 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
111 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
112 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
115 assert_eq!("hello", t.as_str().unwrap());
116 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
117 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
118 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
121 assert_eq!("hello", t.as_str().unwrap());
122 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
123 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
124 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
127 assert_eq!("hello", t.as_str().unwrap());
128 assert_eq!("hello".to_owned(), Arg::to_string_lossy(&t));
129 assert_eq!(cstr!("hello"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
130 assert_eq!(cstr!("hello"), Borrow::borrow(&t.into_c_str().unwrap()));
135 assert_eq!("43110", t.as_str());
136 assert_eq!("43110".to_owned(), Arg::to_string_lossy(&t));
137 assert_eq!(cstr!("43110"), Borrow::borrow(&t.as_cow_c_str().unwrap()));
138 assert_eq!(cstr!("43110"), t.as_c_str());
139 assert_eq!(cstr!("43110"), Borrow::borrow(&t.into_c_str().unwrap()));
148 assert_eq!(t.as_str().unwrap_err(), io::Errno::INVAL);
149 assert_eq!("hello\u{fffd}world".to_owned(), Arg::to_string_lossy(&t));
150 assert_eq!(
154 assert_eq!(
163 assert_eq!("hello\0world", t.as_str().unwrap());
164 assert_eq!("hello\0world".to_owned(), Arg::to_string_lossy(&t));
165 assert_eq!(t.as_cow_c_str().unwrap_err(), io::Errno::INVAL);
166 assert_eq!(t.into_c_str().unwrap_err(), io::Errno::INVAL);