| 1 | #![allow(non_snake_case)] |
| 2 | |
| 3 | use input_event_codes::{REP_CNT, REP_DELAY, REP_MAX, REP_PERIOD}; |
| 4 | |
| 5 | #[test] |
| 6 | fn test_REP_DELAY() { |
| 7 | assert_eq!(REP_DELAY!(), 0x00); |
| 8 | } |
| 9 | |
| 10 | #[test] |
| 11 | fn test_REP_PERIOD() { |
| 12 | assert_eq!(REP_PERIOD!(), 0x01); |
| 13 | } |
| 14 | |
| 15 | #[test] |
| 16 | fn test_REP_MAX() { |
| 17 | assert_eq!(REP_MAX!(), 0x01); |
| 18 | } |
| 19 | |
| 20 | #[test] |
| 21 | fn test_REP_CNT() { |
| 22 | assert_eq!(REP_CNT!(), (REP_MAX!() + 1)); |
| 23 | } |