File: const_test.go

package info (click to toggle)
golang-github-icza-gox 0.0~git20210726.cd40a3f-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 332 kB
  • sloc: makefile: 2
file content (17 lines) | stat: -rw-r--r-- 270 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package osx

import (
	"reflect"
	"testing"
)

func TestArchConsts(t *testing.T) {
	arch32bit := reflect.TypeOf(0).Size() == 4

	if arch32bit != Arch32bit {
		t.Errorf("Arch32bit is incorrect!")
	}
	if arch32bit == Arch64bit {
		t.Errorf("Arch64bit is incorrect!")
	}
}