Simplified file structure
This commit is contained in:
17
src/sizeof/Unsigned_test.go
Normal file
17
src/sizeof/Unsigned_test.go
Normal file
@ -0,0 +1,17 @@
|
||||
package sizeof_test
|
||||
|
||||
import (
|
||||
"math"
|
||||
"testing"
|
||||
|
||||
"git.akyoto.dev/cli/q/src/sizeof"
|
||||
"git.akyoto.dev/go/assert"
|
||||
)
|
||||
|
||||
func TestUnsigned(t *testing.T) {
|
||||
assert.Equal(t, sizeof.Unsigned(0), 1)
|
||||
assert.Equal(t, sizeof.Unsigned(math.MaxUint8), 1)
|
||||
assert.Equal(t, sizeof.Unsigned(math.MaxUint16), 2)
|
||||
assert.Equal(t, sizeof.Unsigned(math.MaxUint32), 4)
|
||||
assert.Equal(t, sizeof.Unsigned(math.MaxUint64), 8)
|
||||
}
|
Reference in New Issue
Block a user