1 #[macro_use]
2 extern crate generic_array;
3 extern crate typenum;
4 
5 #[test]
empty_without_trailing_comma()6 fn empty_without_trailing_comma() {
7     let ar = arr![u8; ];
8     assert_eq!(format!("{:x}", ar), "");
9 }
10 
11 #[test]
empty_with_trailing_comma()12 fn empty_with_trailing_comma() {
13     let ar = arr![u8; , ];
14     assert_eq!(format!("{:x}", ar), "");
15 }
16 
17 #[test]
without_trailing_comma()18 fn without_trailing_comma() {
19     let ar = arr![u8; 10, 20, 30];
20     assert_eq!(format!("{:x}", ar), "0a141e");
21 }
22 
23 #[test]
with_trailing_comma()24 fn with_trailing_comma() {
25     let ar = arr![u8; 10, 20, 30, ];
26     assert_eq!(format!("{:x}", ar), "0a141e");
27 }
28