From 073356f1e0fc9adb1d5ee5252362836ae061acfd Mon Sep 17 00:00:00 2001 From: Jannes Brands Date: Thu, 22 Feb 2024 00:11:25 +0100 Subject: [PATCH] add test for Default --- src/j1939/address.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/j1939/address.rs b/src/j1939/address.rs index ee4048e..a8a60e4 100644 --- a/src/j1939/address.rs +++ b/src/j1939/address.rs @@ -69,5 +69,8 @@ mod tests { let address = Address::NULL; assert!(address.is_null()); + + let address = Address::default(); + assert!(address.is_null()); } }