Home | History | Annotate | Download | only in test

Lines Matching refs:ErrorTest

18 type ErrorTest struct {
113 var errorTests = []ErrorTest{
115 ErrorTest{"int 0/0", func() { use(i / j) }, "divide"},
116 ErrorTest{"int8 0/0", func() { use(i8 / j8) }, "divide"},
117 ErrorTest{"int16 0/0", func() { use(i16 / j16) }, "divide"},
118 ErrorTest{"int32 0/0", func() { use(i32 / j32) }, "divide"},
119 ErrorTest{"int64 0/0", func() { use(i64 / j64) }, "divide"},
121 ErrorTest{"int 1/0", func() { use(k / j) }, "divide"},
122 ErrorTest{"int8 1/0", func() { use(k8 / j8) }, "divide"},
123 ErrorTest{"int16 1/0", func() { use(k16 / j16) }, "divide"},
124 ErrorTest{"int32 1/0", func() { use(k32 / j32) }, "divide"},
125 ErrorTest{"int64 1/0", func() { use(k64 / j64) }, "divide"},
127 ErrorTest{"uint 0/0", func() { use(u / v) }, "divide"},
128 ErrorTest{"uint8 0/0", func() { use(u8 / v8) }, "divide"},
129 ErrorTest{"uint16 0/0", func() { use(u16 / v16) }, "divide"},
130 ErrorTest{"uint32 0/0", func() { use(u32 / v32) }, "divide"},
131 ErrorTest{"uint64 0/0", func() { use(u64 / v64) }, "divide"},
132 ErrorTest{"uintptr 0/0", func() { use(up / vp) }, "divide"},
134 ErrorTest{"uint 1/0", func() { use(w / v) }, "divide"},
135 ErrorTest{"uint8 1/0", func() { use(w8 / v8) }, "divide"},
136 ErrorTest{"uint16 1/0", func() { use(w16 / v16) }, "divide"},
137 ErrorTest{"uint32 1/0", func() { use(w32 / v32) }, "divide"},
138 ErrorTest{"uint64 1/0", func() { use(w64 / v64) }, "divide"},
139 ErrorTest{"uintptr 1/0", func() { use(wp / vp) }, "divide"},
142 ErrorTest{"float64 0/0", func() { use(f / g) }, ""},
143 ErrorTest{"float32 0/0", func() { use(f32 / g32) }, ""},
144 ErrorTest{"float64 0/0", func() { use(f64 / g64) }, ""},
146 ErrorTest{"float64 1/0", func() { use(h / g) }, ""},
147 ErrorTest{"float32 1/0", func() { use(h32 / g32) }, ""},
148 ErrorTest{"float64 1/0", func() { use(h64 / g64) }, ""},
149 ErrorTest{"float64 inf/0", func() { use(inf / g64) }, ""},
150 ErrorTest{"float64 -inf/0", func() { use(negInf / g64) }, ""},
151 ErrorTest{"float64 nan/0", func() { use(nan / g64) }, ""},
154 ErrorTest{"complex 0/0", func() { use(c / d) }, ""},
155 ErrorTest{"complex64 0/0", func() { use(c64 / d64) }, ""},
156 ErrorTest{"complex128 0/0", func() { use(c128 / d128) }, ""},
158 ErrorTest{"complex 1/0", func() { use(e / d) }, ""},
159 ErrorTest{"complex64 1/0", func() { use(e64 / d64) }, ""},
160 ErrorTest{"complex128 1/0", func() { use(e128 / d128) }, ""},