]> git.scottworley.com Git - tablify/commitdiff
Don't compare entire Config in tests
authorScott Worley <scottworley@scottworley.com>
Thu, 3 Oct 2024 04:54:33 +0000 (21:54 -0700)
committerScott Worley <scottworley@scottworley.com>
Fri, 4 Oct 2024 05:09:16 +0000 (22:09 -0700)
src/lib.rs

index b52806a744df217691d50d43d471f01cdbd15e0d..d55aa53027e90c2e063ede8e80f0ee0bb9022b29 100644 (file)
@@ -489,10 +489,10 @@ mod tests {
     #[test]
     fn test_read_config() {
         assert_eq!(
     #[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"[..]);
         );
 
         let bad_num = read_config(&b"!col_threshold foo"[..]);