@@ -83,7 +83,6 @@ for (sz,T) in allsizes
83
83
@check_bit_operation getindex (b1) Bool
84
84
@check_bit_operation setindex! (b1, true ) T
85
85
@check_bit_operation setindex! (b1, false ) T
86
- @check_bit_operation setindex! (b1, 1.0 ) T
87
86
end
88
87
89
88
# linear
@@ -93,7 +92,6 @@ for (sz,T) in allsizes[2:end]
93
92
for j = 1 : l
94
93
@check_bit_operation getindex (b1, j) Bool
95
94
end
96
- @check_bit_operation getindex (b1, 100.0 ) Bool
97
95
98
96
for j in [0 , 1 , 63 , 64 , 65 , 127 , 128 , 129 , 191 , 192 , 193 , l- 1 , l]
99
97
@check_bit_operation getindex (b1, 1 : j) BitVector
@@ -103,23 +101,17 @@ for (sz,T) in allsizes[2:end]
103
101
m1 = j: (l- j)
104
102
@check_bit_operation getindex (b1, m1) BitVector
105
103
end
106
- @check_bit_operation getindex (b1, 1.0 : 100.0 ) BitVector
107
104
108
105
t1 = find (bitrand (l))
109
106
@check_bit_operation getindex (b1, t1) BitVector
110
- @check_bit_operation getindex (b1, float (t1)) BitVector
111
107
112
108
for j = 1 : l
113
109
x = rand (Bool)
114
110
@check_bit_operation setindex! (b1, x, j) T
115
111
end
116
112
117
- x = rand (Bool)
118
- @check_bit_operation setindex! (b1, x, 100.0 ) T
119
113
y = rand (0.0 : 1.0 )
120
114
@check_bit_operation setindex! (b1, y, 100 ) T
121
- y = rand (0.0 : 1.0 )
122
- @check_bit_operation setindex! (b1, y, 100.0 ) T
123
115
124
116
for j in [1 , 63 , 64 , 65 , 127 , 128 , 129 , 191 , 192 , 193 , l- 1 ]
125
117
x = rand (Bool)
@@ -139,16 +131,12 @@ for (sz,T) in allsizes[2:end]
139
131
@check_bit_operation setindex! (b1, b2, m1) T
140
132
end
141
133
x = rand (Bool)
142
- @check_bit_operation setindex! (b1, x, 1.0 : 100.0 ) T
134
+ @check_bit_operation setindex! (b1, x, 1 : 100 ) T
143
135
b2 = bitrand (100 )
144
- @check_bit_operation setindex! (b1, b2, 1.0 : 100.0 ) T
136
+ @check_bit_operation setindex! (b1, b2, 1 : 100 ) T
145
137
146
138
y = rand (0.0 : 1.0 )
147
139
@check_bit_operation setindex! (b1, y, 1 : 100 ) T
148
- f2 = float (bitrand (100 ))
149
- @check_bit_operation setindex! (b1, f2, 1 : 100 ) T
150
- f2 = float (bitrand (100 ))
151
- @check_bit_operation setindex! (b1, f2, 1.0 : 100.0 ) T
152
140
153
141
t1 = find (bitrand (l))
154
142
x = rand (Bool)
@@ -158,19 +146,6 @@ for (sz,T) in allsizes[2:end]
158
146
159
147
y = rand (0.0 : 1.0 )
160
148
@check_bit_operation setindex! (b1, y, t1) T
161
- f2 = float (bitrand (length (t1)))
162
- @check_bit_operation setindex! (b1, f2, t1) T
163
-
164
- ft1 = float (t1)
165
- x = rand (Bool)
166
- @check_bit_operation setindex! (b1, x, ft1) T
167
- b2 = bitrand (length (t1))
168
- @check_bit_operation setindex! (b1, b2, ft1) T
169
-
170
- y = rand (0.0 : 1.0 )
171
- @check_bit_operation setindex! (b1, y, ft1) T
172
- f2 = float (bitrand (length (t1)))
173
- @check_bit_operation setindex! (b1, f2, ft1) T
174
149
end
175
150
176
151
# multidimensional
@@ -208,14 +183,6 @@ for (k1, k2, T) in Task(gen_getindex_data)
208
183
# println(typeof(k1), " ", typeof(k2), " ", T) # uncomment to debug
209
184
@check_bit_operation getindex (b1, k1, k2) T
210
185
@check_bit_operation getindex (b1, k1, k2, 1 ) T
211
-
212
- # @check_bit_operation getindex(b1, float(k1), k2) T
213
- # @check_bit_operation getindex(b1, k1, float(k2)) T
214
-
215
- @check_bit_operation getindex (b1, float (k1), float (k2)) T
216
-
217
- @check_bit_operation getindex (b1, k1, k2, 1.0 ) T
218
- # @check_bit_operation getindex(b1, float(k1), float(k2), 1.0) T
219
186
end
220
187
221
188
function gen_setindex_data ()
250
217
for (b2, k1, k2) in Task (gen_setindex_data)
251
218
# println(typeof(b2), " ", typeof(k1), " ", typeof(k2)) # uncomment to debug
252
219
@check_bit_operation setindex! (b1, b2, k1, k2) BitMatrix
253
-
254
- @check_bit_operation setindex! (b1, float (b2), k1, k2) BitMatrix
255
- @check_bit_operation setindex! (b1, b2, float (k1), k2) BitMatrix
256
- # @check_bit_operation setindex!(b1, b2, k1, float(k2)) BitMatrix
257
-
258
- # @check_bit_operation setindex!(b1, float(b2), float(k1), k2) BitMatrix
259
- # @check_bit_operation setindex!(b1, float(b2), k1, float(k2)) BitMatrix
260
- # @check_bit_operation setindex!(b1, b2, float(k1), float(k2)) BitMatrix
261
-
262
- @check_bit_operation setindex! (b1, float (b2), float (k1), float (k2)) BitMatrix
263
220
end
264
221
265
222
m1, m2 = rand_m1m2 ()
0 commit comments