Skip to content

Commit

Permalink
refactor: rename tests
Browse files Browse the repository at this point in the history
  • Loading branch information
josecelano committed Oct 8, 2024
1 parent d1972c4 commit 6959415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parsers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ mod tests {
use super::{error, BencodeParser};

#[test]
fn it_should_allow_writing_to_a_byte_vector() {
fn it_should_allow_writing_to_any_type_implementing_io_write_trait() {
let mut output = Vec::new();

let mut parser = BencodeParser::new(&b"i0e"[..]);
Expand All @@ -238,7 +238,7 @@ mod tests {
}

#[test]
fn it_should_allow_writing_to_a_string() {
fn it_should_allow_writing_to_any_type_implementing_fmt_write_trait() {
let mut output = String::new();

let mut parser = BencodeParser::new(&b"i0e"[..]);
Expand Down

0 comments on commit 6959415

Please sign in to comment.