| 1 | #![allow(non_snake_case)] |
| 2 | |
| 3 | use input_event_codes::{SND_BELL, SND_CLICK, SND_CNT, SND_MAX, SND_TONE}; |
| 4 | |
| 5 | #[test] |
| 6 | fn test_SND_CLICK() { |
| 7 | assert_eq!(SND_CLICK!(), 0x00); |
| 8 | } |
| 9 | |
| 10 | #[test] |
| 11 | fn test_SND_BELL() { |
| 12 | assert_eq!(SND_BELL!(), 0x01); |
| 13 | } |
| 14 | |
| 15 | #[test] |
| 16 | fn test_SND_TONE() { |
| 17 | assert_eq!(SND_TONE!(), 0x02); |
| 18 | } |
| 19 | |
| 20 | #[test] |
| 21 | fn test_SND_MAX() { |
| 22 | assert_eq!(SND_MAX!(), 0x07); |
| 23 | } |
| 24 | |
| 25 | #[test] |
| 26 | fn test_SND_CNT() { |
| 27 | assert_eq!(SND_CNT!(), (SND_MAX!() + 1)); |
| 28 | } |