|
223 | 223 |
|
224 | 224 | describe DBus::Data::Byte do |
225 | 225 | include_examples "#== and #eql? work for basic types" |
226 | | - include_examples "constructor accepts numeric range", 0, 2**8 - 1 |
| 226 | + include_examples "constructor accepts numeric range", 0, (2**8) - 1 |
227 | 227 | include_examples "constructor accepts plain or typed values", 42 |
228 | 228 | end |
229 | 229 |
|
230 | 230 | describe DBus::Data::Int16 do |
231 | 231 | include_examples "#== and #eql? work for basic types" |
232 | | - include_examples "constructor accepts numeric range", -2**15, 2**15 - 1 |
| 232 | + include_examples "constructor accepts numeric range", -2**15, (2**15) - 1 |
233 | 233 | include_examples "constructor accepts plain or typed values", 42 |
234 | 234 | end |
235 | 235 |
|
236 | 236 | describe DBus::Data::UInt16 do |
237 | 237 | include_examples "#== and #eql? work for basic types" |
238 | | - include_examples "constructor accepts numeric range", 0, 2**16 - 1 |
| 238 | + include_examples "constructor accepts numeric range", 0, (2**16) - 1 |
239 | 239 | include_examples "constructor accepts plain or typed values", 42 |
240 | 240 | end |
241 | 241 |
|
242 | 242 | describe DBus::Data::Int32 do |
243 | 243 | include_examples "#== and #eql? work for basic types" |
244 | | - include_examples "constructor accepts numeric range", -2**31, 2**31 - 1 |
| 244 | + include_examples "constructor accepts numeric range", -2**31, (2**31) - 1 |
245 | 245 | include_examples "constructor accepts plain or typed values", 42 |
246 | 246 | end |
247 | 247 |
|
248 | 248 | describe DBus::Data::UInt32 do |
249 | 249 | include_examples "#== and #eql? work for basic types" |
250 | | - include_examples "constructor accepts numeric range", 0, 2**32 - 1 |
| 250 | + include_examples "constructor accepts numeric range", 0, (2**32) - 1 |
251 | 251 | include_examples "constructor accepts plain or typed values", 42 |
252 | 252 | end |
253 | 253 |
|
254 | 254 | describe DBus::Data::Int64 do |
255 | 255 | include_examples "#== and #eql? work for basic types" |
256 | | - include_examples "constructor accepts numeric range", -2**63, 2**63 - 1 |
| 256 | + include_examples "constructor accepts numeric range", -2**63, (2**63) - 1 |
257 | 257 | include_examples "constructor accepts plain or typed values", 42 |
258 | 258 | end |
259 | 259 |
|
260 | 260 | describe DBus::Data::UInt64 do |
261 | 261 | include_examples "#== and #eql? work for basic types" |
262 | | - include_examples "constructor accepts numeric range", 0, 2**64 - 1 |
| 262 | + include_examples "constructor accepts numeric range", 0, (2**64) - 1 |
263 | 263 | include_examples "constructor accepts plain or typed values", 42 |
264 | 264 | end |
265 | 265 |
|
|
0 commit comments