[wlan][common] Add a unit test for round_up()

Shouldn't hurt since the correctness of the formula might not be
immediately obvious.

Change-Id: Ibc3c645395d4fc5cbd8677f491ce9ae9f09d3ec6
diff --git a/garnet/lib/rust/wlan-common/src/mac.rs b/garnet/lib/rust/wlan-common/src/mac.rs
index 2b72d31..f1a890c 100644
--- a/garnet/lib/rust/wlan-common/src/mac.rs
+++ b/garnet/lib/rust/wlan-common/src/mac.rs
@@ -1193,4 +1193,14 @@
         data_hdr.frame_ctrl = fc;
         assert_eq!(data_bssid(&data_hdr), Some([4; 6])); // Addr2
     }
+
+    #[test]
+    fn round_up_to_4() {
+        assert_eq!(0, round_up(0u32, 4));
+        assert_eq!(4, round_up(1u32, 4));
+        assert_eq!(4, round_up(2u32, 4));
+        assert_eq!(4, round_up(3u32, 4));
+        assert_eq!(4, round_up(4u32, 4));
+        assert_eq!(8, round_up(5u32, 4));
+    }
 }