<commit_before>// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build go1.7

package unix_test

import (
	"fmt"
	"testing"

	"golang.org/x/sys/unix"
)

func TestDevices(t *testing.T) {
	testCases := []struct {
		path  string
		major uint32
		minor uint32
	}{
		// well known major/minor numbers according to /dev/MAKEDEV on
		// NetBSD 7.0
		{"/dev/null", 2, 2},
		{"/dev/zero", 2, 12},
		{"/dev/ttyp0", 5, 0},
		{"/dev/ttyp1", 5, 1},
		{"/dev/random", 46, 0},<commit_msg>unix: fix tests on NetBSD 8.0<commit_after>// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// +build go1.7

package unix_test

import (
	"fmt"
	"testing"

	"golang.org/x/sys/unix"
)

func TestDevices(t *testing.T) {
	testCases := []struct {
		path  string
		major uint32
		minor uint32
	}{
		// well known major/minor numbers according to /dev/MAKEDEV on
		// NetBSD 8.0
		{"/dev/null", 2, 2},
		{"/dev/zero", 2, 12},
		{"/dev/ptyp0", 6, 0},
		{"/dev/ptyp1", 6, 1},
		{"/dev/random", 46, 0},
{'fraction_non_alphanumeric': 0.15966386554621848, 'fraction_numerical': 0.0453781512605042, 'mean_word_length': 2.904918032786885, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '83406', 'n_tokens_mistral': 527, 'n_tokens_neox': 456, 'n_words': 148}