| 1 | #![allow(non_snake_case)] |
| 2 | |
| 3 | use input_event_codes::{ |
| 4 | EV_ABS, EV_CNT, EV_FF, EV_FF_STATUS, EV_KEY, EV_LED, EV_MAX, EV_MSC, EV_PWR, EV_REL, EV_REP, |
| 5 | EV_SND, EV_SW, EV_SYN, |
| 6 | }; |
| 7 | |
| 8 | #[test] |
| 9 | fn test_EV_SYN() { |
| 10 | assert_eq!(EV_SYN!(), 0x00); |
| 11 | } |
| 12 | |
| 13 | #[test] |
| 14 | fn test_EV_KEY() { |
| 15 | assert_eq!(EV_KEY!(), 0x01); |
| 16 | } |
| 17 | |
| 18 | #[test] |
| 19 | fn test_EV_REL() { |
| 20 | assert_eq!(EV_REL!(), 0x02); |
| 21 | } |
| 22 | |
| 23 | #[test] |
| 24 | fn test_EV_ABS() { |
| 25 | assert_eq!(EV_ABS!(), 0x03); |
| 26 | } |
| 27 | |
| 28 | #[test] |
| 29 | fn test_EV_MSC() { |
| 30 | assert_eq!(EV_MSC!(), 0x04); |
| 31 | } |
| 32 | |
| 33 | #[test] |
| 34 | fn test_EV_SW() { |
| 35 | assert_eq!(EV_SW!(), 0x05); |
| 36 | } |
| 37 | |
| 38 | #[test] |
| 39 | fn test_EV_LED() { |
| 40 | assert_eq!(EV_LED!(), 0x11); |
| 41 | } |
| 42 | |
| 43 | #[test] |
| 44 | fn test_EV_SND() { |
| 45 | assert_eq!(EV_SND!(), 0x12); |
| 46 | } |
| 47 | |
| 48 | #[test] |
| 49 | fn test_EV_REP() { |
| 50 | assert_eq!(EV_REP!(), 0x14); |
| 51 | } |
| 52 | |
| 53 | #[test] |
| 54 | fn test_EV_FF() { |
| 55 | assert_eq!(EV_FF!(), 0x15); |
| 56 | } |
| 57 | |
| 58 | #[test] |
| 59 | fn test_EV_PWR() { |
| 60 | assert_eq!(EV_PWR!(), 0x16); |
| 61 | } |
| 62 | |
| 63 | #[test] |
| 64 | fn test_EV_FF_STATUS() { |
| 65 | assert_eq!(EV_FF_STATUS!(), 0x17); |
| 66 | } |
| 67 | |
| 68 | #[test] |
| 69 | fn test_EV_MAX() { |
| 70 | assert_eq!(EV_MAX!(), 0x1f); |
| 71 | } |
| 72 | |
| 73 | #[test] |
| 74 | fn test_EV_CNT() { |
| 75 | assert_eq!(EV_CNT!(), (EV_MAX!() + 1)); |
| 76 | } |