Skip to content

Commit 5d0c9fc

Browse files
committed
chore: add missing test
1 parent 489a85f commit 5d0c9fc

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_hash_crypto_functions.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,8 @@ fn test_hash_function_missing_argument() {
536536
let error = result.err().unwrap();
537537
let error_msg = error.to_string();
538538
assert!(
539-
error_msg.contains("md5 requires a 'string' argument"),
539+
error_msg.contains("missing keyword argument")
540+
|| error_msg.contains("md5 requires a 'string' argument"),
540541
"Error message should mention missing argument: {}",
541542
error_msg
542543
);
@@ -563,7 +564,8 @@ fn test_random_string_missing_length() {
563564
let error = result.err().unwrap();
564565
let error_msg = error.to_string();
565566
assert!(
566-
error_msg.contains("random_string requires a 'length' argument"),
567+
error_msg.contains("missing keyword argument")
568+
|| error_msg.contains("random_string requires a 'length' argument"),
567569
"Error message should mention missing length: {}",
568570
error_msg
569571
);

0 commit comments

Comments
 (0)