From: Scott Worley Date: Thu, 3 Oct 2024 04:54:33 +0000 (-0700) Subject: Don't compare entire Config in tests X-Git-Tag: v0.4.0~11 X-Git-Url: http://git.scottworley.com/tablify/commitdiff_plain/fa8b547998d23b948cadde2c9e8f35b9055f9189 Don't compare entire Config in tests --- diff --git a/src/lib.rs b/src/lib.rs index b52806a..d55aa53 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -489,10 +489,10 @@ mod tests { #[test] fn test_read_config() { assert_eq!( - read_config(&b"!col_threshold 10"[..]).unwrap(), - Config { - column_threshold: 10 - } + read_config(&b"!col_threshold 10"[..]) + .unwrap() + .column_threshold, + 10 ); let bad_num = read_config(&b"!col_threshold foo"[..]);