File: devnum_test.go

package info (click to toggle)
golang-github-jochenvg-go-udev 0.0~git20171110.d6b62d5-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 144 kB
  • sloc: makefile: 4
file content (15 lines) | stat: -rw-r--r-- 181 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// +build linux

package udev

import "testing"

func TestDevnumMajorMinor(t *testing.T) {
	d := MkDev(1, 8)
	if d.Major() != 1 {
		t.Fail()
	}
	if d.Minor() != 8 {
		t.Fail()
	}
}