File: msc.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 (45 lines) | stat: -rw-r--r-- 693 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#![allow(non_snake_case)]

use input_event_codes::{
	MSC_CNT, MSC_GESTURE, MSC_MAX, MSC_PULSELED, MSC_RAW, MSC_SCAN, MSC_SERIAL, MSC_TIMESTAMP,
};

#[test]
fn test_MSC_SERIAL() {
	assert_eq!(MSC_SERIAL!(), 0x00);
}

#[test]
fn test_MSC_PULSELED() {
	assert_eq!(MSC_PULSELED!(), 0x01);
}

#[test]
fn test_MSC_GESTURE() {
	assert_eq!(MSC_GESTURE!(), 0x02);
}

#[test]
fn test_MSC_RAW() {
	assert_eq!(MSC_RAW!(), 0x03);
}

#[test]
fn test_MSC_SCAN() {
	assert_eq!(MSC_SCAN!(), 0x04);
}

#[test]
fn test_MSC_TIMESTAMP() {
	assert_eq!(MSC_TIMESTAMP!(), 0x05);
}

#[test]
fn test_MSC_MAX() {
	assert_eq!(MSC_MAX!(), 0x07);
}

#[test]
fn test_MSC_CNT() {
	assert_eq!(MSC_CNT!(), (MSC_MAX!() + 1));
}