File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -225,14 +225,14 @@ mod tests {
225
225
}
226
226
227
227
#[ test]
228
- fn from_string ( ) {
228
+ fn test_from_string ( ) {
229
229
let string = String :: from ( "hello" ) ;
230
230
let bytes_string = BytesString :: from ( string) ;
231
231
assert_eq ! ( bytes_string. as_str( ) , "hello" )
232
232
}
233
233
234
234
#[ test]
235
- fn from_static_str ( ) {
235
+ fn test_from_static_str ( ) {
236
236
let static_str = "hello" ;
237
237
let bytes_string = BytesString :: from ( static_str) ;
238
238
assert_eq ! ( bytes_string. as_str( ) , "hello" )
@@ -245,13 +245,13 @@ mod tests {
245
245
}
246
246
247
247
#[ test]
248
- fn hash ( ) {
248
+ fn test_hash ( ) {
249
249
let bytes_string = BytesString :: from_slice ( b"test hash" ) . unwrap ( ) ;
250
250
assert_eq ! ( calculate_hash( & bytes_string) , calculate_hash( & "test hash" ) ) ;
251
251
}
252
252
253
253
#[ test]
254
- fn copy_to_string ( ) {
254
+ fn test_copy_to_string ( ) {
255
255
let bytes_string = BytesString :: from ( "hello" ) ;
256
256
assert_eq ! ( bytes_string. copy_to_string( ) , "hello" )
257
257
}
You can’t perform that action at this time.
0 commit comments