-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathnumeric_test.go
75 lines (62 loc) · 1.52 KB
/
numeric_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package asc
import "testing"
func TestUint8(t *testing.T) {
if Uint8(uint8(1), uint8(0)) {
t.Fatalf("asc.TestUint8 failed: %v\n", greaterThanErr)
}
}
func TestUint16(t *testing.T) {
if Uint16(uint16(1), uint16(0)) {
t.Fatalf("asc.TestUint16 failed: %v\n", greaterThanErr)
}
}
func TestUint32(t *testing.T) {
if Uint32(uint32(1), uint32(0)) {
t.Fatalf("asc.TestUint32 failed: %v\n", greaterThanErr)
}
}
func TestUint64(t *testing.T) {
if Uint64(uint64(1), uint64(0)) {
t.Fatalf("asc.TestUint64 failed: %v\n", greaterThanErr)
}
}
func TestInt8(t *testing.T) {
if Int8(int8(1), int8(0)) {
t.Fatalf("asc.TestInt8 failed: %v\n", greaterThanErr)
}
}
func TestInt16(t *testing.T) {
if Int16(int16(1), int16(0)) {
t.Fatalf("asc.TestInt16 failed: %v\n", greaterThanErr)
}
}
func TestInt32(t *testing.T) {
if Int32(int32(1), int32(0)) {
t.Fatalf("asc.TestInt32 failed: %v\n", greaterThanErr)
}
}
func TestInt64(t *testing.T) {
if Int64(int64(1), int64(0)) {
t.Fatalf("asc.TestInt64 failed: %v\n", greaterThanErr)
}
}
func TestFloat32(t *testing.T) {
if Float32(float32(1), float32(0)) {
t.Fatalf("asc.TestFloat32 failed: %v\n", greaterThanErr)
}
}
func TestFloat64(t *testing.T) {
if Float64(float64(1), float64(0)) {
t.Fatalf("asc.TestFloat64 failed: %v\n", greaterThanErr)
}
}
func TestUint(t *testing.T) {
if Uint(uint(1), uint(0)) {
t.Fatalf("asc.TestUint failed: %v\n", greaterThanErr)
}
}
func TestInt(t *testing.T) {
if Int(int(1), 0) {
t.Fatalf("asc.TestInt failed: %v\n", greaterThanErr)
}
}