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