github.com/primecitizens/pcz/std@v0.2.1/core/arch/goarch_test.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 // 4 // Copyright 2017 The Go Authors. All rights reserved. 5 // Use of this source code is governed by a BSD-style 6 // license that can be found in the LICENSE file. 7 8 package arch_test 9 10 import ( 11 "testing" 12 "unsafe" 13 14 "github.com/primecitizens/pcz/std/core/arch" 15 ) 16 17 func TestUintSize(t *testing.T) { 18 var x uint 19 if want := unsafe.Sizeof(x) * 8; arch.UintBits != want { 20 t.Fatalf("UintSize = %d; want %d", arch.UintBits, want) 21 } 22 }