Skip to content

Commit 16c13b5

Browse files
Fix test names (#791)
1 parent 962589d commit 16c13b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tinybytes/src/bytes_string.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -225,14 +225,14 @@ mod tests {
225225
}
226226

227227
#[test]
228-
fn from_string() {
228+
fn test_from_string() {
229229
let string = String::from("hello");
230230
let bytes_string = BytesString::from(string);
231231
assert_eq!(bytes_string.as_str(), "hello")
232232
}
233233

234234
#[test]
235-
fn from_static_str() {
235+
fn test_from_static_str() {
236236
let static_str = "hello";
237237
let bytes_string = BytesString::from(static_str);
238238
assert_eq!(bytes_string.as_str(), "hello")
@@ -245,13 +245,13 @@ mod tests {
245245
}
246246

247247
#[test]
248-
fn hash() {
248+
fn test_hash() {
249249
let bytes_string = BytesString::from_slice(b"test hash").unwrap();
250250
assert_eq!(calculate_hash(&bytes_string), calculate_hash(&"test hash"));
251251
}
252252

253253
#[test]
254-
fn copy_to_string() {
254+
fn test_copy_to_string() {
255255
let bytes_string = BytesString::from("hello");
256256
assert_eq!(bytes_string.copy_to_string(), "hello")
257257
}

0 commit comments

Comments
 (0)