1 | #![cfg (target_pointer_width = "64" )] |
2 | |
3 | use std::mem; |
4 | use syn::{Expr, Item, Lit, Pat, Type}; |
5 | |
6 | #[test] |
7 | fn test_expr_size() { |
8 | assert_eq!(mem::size_of::<Expr>(), 272); |
9 | } |
10 | |
11 | #[test] |
12 | fn test_item_size() { |
13 | assert_eq!(mem::size_of::<Item>(), 320); |
14 | } |
15 | |
16 | #[test] |
17 | fn test_type_size() { |
18 | assert_eq!(mem::size_of::<Type>(), 288); |
19 | } |
20 | |
21 | #[test] |
22 | fn test_pat_size() { |
23 | assert_eq!(mem::size_of::<Pat>(), 144); |
24 | } |
25 | |
26 | #[test] |
27 | fn test_lit_size() { |
28 | assert_eq!(mem::size_of::<Lit>(), 32); |
29 | } |
30 | |