File: snd.rs

package info (click to toggle)
rust-input-event-codes 6.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 340 kB
  • sloc: makefile: 4
file content (28 lines) | stat: -rw-r--r-- 431 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#![allow(non_snake_case)]

use input_event_codes::{SND_BELL, SND_CLICK, SND_CNT, SND_MAX, SND_TONE};

#[test]
fn test_SND_CLICK() {
	assert_eq!(SND_CLICK!(), 0x00);
}

#[test]
fn test_SND_BELL() {
	assert_eq!(SND_BELL!(), 0x01);
}

#[test]
fn test_SND_TONE() {
	assert_eq!(SND_TONE!(), 0x02);
}

#[test]
fn test_SND_MAX() {
	assert_eq!(SND_MAX!(), 0x07);
}

#[test]
fn test_SND_CNT() {
	assert_eq!(SND_CNT!(), (SND_MAX!() + 1));
}