From 68ff71c889758a3d5d0148ce13eb76c7959dfed8 Mon Sep 17 00:00:00 2001 From: Serial <69764315+Serial-ATA@users.noreply.github.com> Date: Sat, 10 Jul 2021 12:53:16 -0400 Subject: [PATCH] Add tests for encoder methods Signed-off-by: Serial <69764315+Serial-ATA@users.noreply.github.com> --- tests/io.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/io.rs b/tests/io.rs index fda31600..0c20a6f2 100644 --- a/tests/io.rs +++ b/tests/io.rs @@ -59,6 +59,9 @@ macro_rules! add_tags { println!("Setting composer"); tag.set_composer("Serial-ATA1"); + println!("Setting encoder"); + tag.set_encoder("Lofty"); + println!("Setting album title"); tag.set_album_title("foo album title"); @@ -148,6 +151,9 @@ macro_rules! verify_write { println!("Verifying genre"); assert_eq!(tag.genre(), Some("Country")); + println!("Verifying encoder"); + assert_eq!(tag.encoder(), Some("Lofty")); + println!("Verifying album title"); assert_eq!(tag.album_title(), Some("foo album title")); @@ -265,6 +271,11 @@ macro_rules! remove_tags { assert!(tag.bpm().is_none()); tag.remove_bpm(); + println!("Removing encoder"); + tag.remove_encoder(); + assert!(tag.encoder().is_none()); + tag.remove_encoder(); + println!("Removing album title"); tag.remove_album_title(); assert!(tag.album_title().is_none());