Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created August 21, 2017 10:52
Show Gist options
  • Save Whateverable/bd2f3c76c444e15a9feb6c3e7815e862 to your computer and use it in GitHub Desktop.
Save Whateverable/bd2f3c76c444e15a9feb6c3e7815e862 to your computer and use it in GitHub Desktop.
committable6
MVM_SPESH_DISABLE=1 HEAD https://raw.githubusercontent.com/perl6/roast/6.c-errata/S32-num/complex.t
¦«HEAD(1aee9aa)»:
1..512
ok 1 - postfix:<i> creates a Complex number
ok 2 - i creates a Complex number
ok 3 - i == 1i
ok 4 - != and complex numbers
ok 5 - ($n)i form creates a Complex number
ok 6 - $n\i form creates a Complex number
ok 7 - postfix:<i> works on an imaginary number
ok 8 - postfix:<i> works on a Complex number
1..2
ok 1 - '(2 + 3i) > (2 + 2i)' died
ok 2 - right exception type (Exception)
ok 9 - > comparison of complex numbers dies
1..2
ok 1 - '(1 + 2i) < (2 + 4i)' died
ok 2 - right exception type (Exception)
ok 10 - Cannot arithmetically compare Complex numbers
ok 11 - standalone i works to generate a Complex number
ok 12 - standalone i works to generate a Complex number
ok 13 - standalone i works times a Complex number
ok 14 - Complex division
ok 15 - Complex multiplication
ok 16 - dividing Complex by a Real
ok 17 - dividing a Real by a Complex
ok 18 - Real * Complex
ok 19 - Complex * Real
ok 20 - EVAL (1+3i).perl is Complex
ok 21 - EVAL (1+3i).perl is 1+3i
ok 22 - EVAL (1+0i).perl is Complex
ok 23 - EVAL (1+0i).perl is 1
ok 24 - EVAL (3i).perl is Complex
ok 25 - EVAL (3i).perl is 3i
ok 26 - (1+0i).Real is a Real
ok 27 - (1+0i).Real is 1
ok 28 - (1.2+0i).Int is an Int
ok 29 - (1.2+0i).Int is 1
ok 30 - (1.2.sin+0i).Rat is an Rat
ok 31 - (1.2.sin+0i).Rat is 1.2.sin
ok 32 - (1.2+0i).Num is an Num
ok 33 - (1.2+0i).Num is 1.2
ok 34 - (1.2+1i).Complex is an Complex
ok 35 - (1.2+1i).Complex is 1.2+1i
ok 36 - 0+0i + 0 = 0+0i
ok 37 - 0 + 0+0i = 0+0i
ok 38 - 0+0i + 0.0.Num = 0+0i
ok 39 - 0.0.Num + 0+0i = 0+0i
ok 40 - 0+0i + 0/1 = 0+0i
ok 41 - 0/1 + 0+0i = 0+0i
ok 42 - 0+0i - 0 = 0+0i
ok 43 - 0 - 0+0i = -0+0i
ok 44 - 0+0i - 0.0.Num = 0+0i
ok 45 - 0.0.Num - 0+0i = -0+0i
ok 46 - 0+0i - 0/1 = 0+0i
ok 47 - 0/1 - 0+0i = -0+0i
ok 48 - 0+0i + 2
ok 49 - 2 + 0+0i
ok 50 - 0+0i + 2.5.Num = 0+0i
ok 51 - 2.5.Num + 0+0i = 0+0i
ok 52 - 0+0i + 3/2
ok 53 - 3/2 + 0+0i
ok 54 - 0+0i - 2
ok 55 - 2 - 0+0i
ok 56 - 0+0i - 2.5.Num = 0+0i
ok 57 - 2.5.Num - 0+0i = 0+0i
ok 58 - 0+0i - 3/2
ok 59 - 3/2 - 0+0i
ok 60 - 1+0i + 0 = 1+0i
ok 61 - 0 + 1+0i = 1+0i
ok 62 - 1+0i + 0.0.Num = 1+0i
ok 63 - 0.0.Num + 1+0i = 1+0i
ok 64 - 1+0i + 0/1 = 1+0i
ok 65 - 0/1 + 1+0i = 1+0i
ok 66 - 1+0i - 0 = 1+0i
ok 67 - 0 - 1+0i = -1+0i
ok 68 - 1+0i - 0.0.Num = 1+0i
ok 69 - 0.0.Num - 1+0i = -1+0i
ok 70 - 1+0i - 0/1 = 1+0i
ok 71 - 0/1 - 1+0i = -1+0i
ok 72 - 1+0i + 2
ok 73 - 2 + 1+0i
ok 74 - 1+0i + 2.5.Num = 1+0i
ok 75 - 2.5.Num + 1+0i = 1+0i
ok 76 - 1+0i + 3/2
ok 77 - 3/2 + 1+0i
ok 78 - 1+0i - 2
ok 79 - 2 - 1+0i
ok 80 - 1+0i - 2.5.Num = 1+0i
ok 81 - 2.5.Num - 1+0i = 1+0i
ok 82 - 1+0i - 3/2
ok 83 - 3/2 - 1+0i
ok 84 - -1+0i + 0 = -1+0i
ok 85 - 0 + -1+0i = -1+0i
ok 86 - -1+0i + 0.0.Num = -1+0i
ok 87 - 0.0.Num + -1+0i = -1+0i
ok 88 - -1+0i + 0/1 = -1+0i
ok 89 - 0/1 + -1+0i = -1+0i
ok 90 - -1+0i - 0 = -1+0i
ok 91 - 0 - -1+0i = --1+0i
ok 92 - -1+0i - 0.0.Num = -1+0i
ok 93 - 0.0.Num - -1+0i = --1+0i
ok 94 - -1+0i - 0/1 = -1+0i
ok 95 - 0/1 - -1+0i = --1+0i
ok 96 - -1+0i + 2
ok 97 - 2 + -1+0i
ok 98 - -1+0i + 2.5.Num = -1+0i
ok 99 - 2.5.Num + -1+0i = -1+0i
ok 100 - -1+0i + 3/2
ok 101 - 3/2 + -1+0i
ok 102 - -1+0i - 2
ok 103 - 2 - -1+0i
ok 104 - -1+0i - 2.5.Num = -1+0i
ok 105 - 2.5.Num - -1+0i = -1+0i
ok 106 - -1+0i - 3/2
ok 107 - 3/2 - -1+0i
ok 108 - 0+1i + 0 = 0+1i
ok 109 - 0 + 0+1i = 0+1i
ok 110 - 0+1i + 0.0.Num = 0+1i
ok 111 - 0.0.Num + 0+1i = 0+1i
ok 112 - 0+1i + 0/1 = 0+1i
ok 113 - 0/1 + 0+1i = 0+1i
WARNING: unhandled Failure detected in DESTROY. If you meant to ignore it, you can mark it as handled by calling .Bool, .so, .not, or .defined methods. The Failure was:
Cannot convert 2+4i to Real: imaginary part not zero
in block <unit> at EVAL_1 line 1
in block at /tmp/whateverable/rakudo-moar/1aee9aa573daee18b8fc40e1a6bcbcbae6d5ce48/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 614
in sub subtest at /tmp/whateverable/rakudo-moar/1aee9aa573daee18b8fc40e1a6bcbcbae6d5ce48/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 403
in sub throws-like at /tmp/whateverable/rakudo-moar/1aee9aa573daee18b8fc40e1a6bcbcbae6d5ce48/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 641
in block <unit> at /tmp/dB2ZEc88my line 22
WARNING: unhandled Failure detected in DESTROY. If you meant to ignore it, you can mark it as handled by calling .Bool, .so, .not, or .defined methods. The Failure was:
Cannot convert 2+4i to Real: imaginary part not zero
WARNING: unhandled Failure detected in DESTROY. If you meant to ignore it, you can mark it as handled by calling .Bool, .so, .not, or .defined methods. The Failure was:
Cannot convert 2+2i to Real: imaginary part not zero
in block <unit> at EVAL_0 line 1
in block at /tmp/whateverable/rakudo-moar/1aee9aa573daee18b8fc40e1a6bcbcbae6d5ce48/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 614
in sub subtest at /tmp/whateverable/rakudo-moar/1aee9aa573daee18b8fc40e1a6bcbcbae6d5ce48/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 403
in sub throws-like at /tmp/whateverable/rakudo-moar/1aee9aa573daee18b8fc40e1a6bcbcbae6d5ce48/share/perl6/sources/C712FE6969F786C9380D643DF17E85D06868219E (Test) line 641
in block <unit> at /tmp/dB2ZEc88my line 21
WARNING: unhandled Failure detected in DESTROY. If you meant to ignore it, you can mark it as handled by calling .Bool, .so, .not, or .defined methods. The Failure was:
Cannot convert 2+2i to Real: imaginary part not zero
ok 114 - 0+1i - 0 = 0+1i
ok 115 - 0 - 0+1i = -0+1i
ok 116 - 0+1i - 0.0.Num = 0+1i
ok 117 - 0.0.Num - 0+1i = -0+1i
ok 118 - 0+1i - 0/1 = 0+1i
ok 119 - 0/1 - 0+1i = -0+1i
ok 120 - 0+1i + 2
ok 121 - 2 + 0+1i
ok 122 - 0+1i + 2.5.Num = 0+1i
ok 123 - 2.5.Num + 0+1i = 0+1i
ok 124 - 0+1i + 3/2
ok 125 - 3/2 + 0+1i
ok 126 - 0+1i - 2
ok 127 - 2 - 0+1i
ok 128 - 0+1i - 2.5.Num = 0+1i
ok 129 - 2.5.Num - 0+1i = 0+1i
ok 130 - 0+1i - 3/2
ok 131 - 3/2 - 0+1i
ok 132 - -0-1i + 0 = -0-1i
ok 133 - 0 + -0-1i = -0-1i
ok 134 - -0-1i + 0.0.Num = -0-1i
ok 135 - 0.0.Num + -0-1i = -0-1i
ok 136 - -0-1i + 0/1 = -0-1i
ok 137 - 0/1 + -0-1i = -0-1i
ok 138 - -0-1i - 0 = -0-1i
ok 139 - 0 - -0-1i = --0-1i
ok 140 - -0-1i - 0.0.Num = -0-1i
ok 141 - 0.0.Num - -0-1i = --0-1i
ok 142 - -0-1i - 0/1 = -0-1i
ok 143 - 0/1 - -0-1i = --0-1i
ok 144 - -0-1i + 2
ok 145 - 2 + -0-1i
ok 146 - -0-1i + 2.5.Num = -0-1i
ok 147 - 2.5.Num + -0-1i = -0-1i
ok 148 - -0-1i + 3/2
ok 149 - 3/2 + -0-1i
ok 150 - -0-1i - 2
ok 151 - 2 - -0-1i
ok 152 - -0-1i - 2.5.Num = -0-1i
ok 153 - 2.5.Num - -0-1i = -0-1i
ok 154 - -0-1i - 3/2
ok 155 - 3/2 - -0-1i
ok 156 - 2+0i + 0 = 2+0i
ok 157 - 0 + 2+0i = 2+0i
ok 158 - 2+0i + 0.0.Num = 2+0i
ok 159 - 0.0.Num + 2+0i = 2+0i
ok 160 - 2+0i + 0/1 = 2+0i
ok 161 - 0/1 + 2+0i = 2+0i
ok 162 - 2+0i - 0 = 2+0i
ok 163 - 0 - 2+0i = -2+0i
ok 164 - 2+0i - 0.0.Num = 2+0i
ok 165 - 0.0.Num - 2+0i = -2+0i
ok 166 - 2+0i - 0/1 = 2+0i
ok 167 - 0/1 - 2+0i = -2+0i
ok 168 - 2+0i + 2
ok 169 - 2 + 2+0i
ok 170 - 2+0i + 2.5.Num = 2+0i
ok 171 - 2.5.Num + 2+0i = 2+0i
ok 172 - 2+0i + 3/2
ok 173 - 3/2 + 2+0i
ok 174 - 2+0i - 2
ok 175 - 2 - 2+0i
ok 176 - 2+0i - 2.5.Num = 2+0i
ok 177 - 2.5.Num - 2+0i = 2+0i
ok 178 - 2+0i - 3/2
ok 179 - 3/2 - 2+0i
ok 180 - -2+0i + 0 = -2+0i
ok 181 - 0 + -2+0i = -2+0i
ok 182 - -2+0i + 0.0.Num = -2+0i
ok 183 - 0.0.Num + -2+0i = -2+0i
ok 184 - -2+0i + 0/1 = -2+0i
ok 185 - 0/1 + -2+0i = -2+0i
ok 186 - -2+0i - 0 = -2+0i
ok 187 - 0 - -2+0i = --2+0i
ok 188 - -2+0i - 0.0.Num = -2+0i
ok 189 - 0.0.Num - -2+0i = --2+0i
ok 190 - -2+0i - 0/1 = -2+0i
ok 191 - 0/1 - -2+0i = --2+0i
ok 192 - -2+0i + 2
ok 193 - 2 + -2+0i
ok 194 - -2+0i + 2.5.Num = -2+0i
ok 195 - 2.5.Num + -2+0i = -2+0i
ok 196 - -2+0i + 3/2
ok 197 - 3/2 + -2+0i
ok 198 - -2+0i - 2
ok 199 - 2 - -2+0i
ok 200 - -2+0i - 2.5.Num = -2+0i
ok 201 - 2.5.Num - -2+0i = -2+0i
ok 202 - -2+0i - 3/2
ok 203 - 3/2 - -2+0i
ok 204 - 0+2i + 0 = 0+2i
ok 205 - 0 + 0+2i = 0+2i
ok 206 - 0+2i + 0.0.Num = 0+2i
ok 207 - 0.0.Num + 0+2i = 0+2i
ok 208 - 0+2i + 0/1 = 0+2i
ok 209 - 0/1 + 0+2i = 0+2i
ok 210 - 0+2i - 0 = 0+2i
ok 211 - 0 - 0+2i = -0+2i
ok 212 - 0+2i - 0.0.Num = 0+2i
ok 213 - 0.0.Num - 0+2i = -0+2i
ok 214 - 0+2i - 0/1 = 0+2i
ok 215 - 0/1 - 0+2i = -0+2i
ok 216 - 0+2i + 2
ok 217 - 2 + 0+2i
ok 218 - 0+2i + 2.5.Num = 0+2i
ok 219 - 2.5.Num + 0+2i = 0+2i
ok 220 - 0+2i + 3/2
ok 221 - 3/2 + 0+2i
ok 222 - 0+2i - 2
ok 223 - 2 - 0+2i
ok 224 - 0+2i - 2.5.Num = 0+2i
ok 225 - 2.5.Num - 0+2i = 0+2i
ok 226 - 0+2i - 3/2
ok 227 - 3/2 - 0+2i
ok 228 - -0-2i + 0 = -0-2i
ok 229 - 0 + -0-2i = -0-2i
ok 230 - -0-2i + 0.0.Num = -0-2i
ok 231 - 0.0.Num + -0-2i = -0-2i
ok 232 - -0-2i + 0/1 = -0-2i
ok 233 - 0/1 + -0-2i = -0-2i
ok 234 - -0-2i - 0 = -0-2i
ok 235 - 0 - -0-2i = --0-2i
ok 236 - -0-2i - 0.0.Num = -0-2i
ok 237 - 0.0.Num - -0-2i = --0-2i
ok 238 - -0-2i - 0/1 = -0-2i
ok 239 - 0/1 - -0-2i = --0-2i
ok 240 - -0-2i + 2
ok 241 - 2 + -0-2i
ok 242 - -0-2i + 2.5.Num = -0-2i
ok 243 - 2.5.Num + -0-2i = -0-2i
ok 244 - -0-2i + 3/2
ok 245 - 3/2 + -0-2i
ok 246 - -0-2i - 2
ok 247 - 2 - -0-2i
ok 248 - -0-2i - 2.5.Num = -0-2i
ok 249 - 2.5.Num - -0-2i = -0-2i
ok 250 - -0-2i - 3/2
ok 251 - 3/2 - -0-2i
ok 252 - 2+3i + 0 = 2+3i
ok 253 - 0 + 2+3i = 2+3i
ok 254 - 2+3i + 0.0.Num = 2+3i
ok 255 - 0.0.Num + 2+3i = 2+3i
ok 256 - 2+3i + 0/1 = 2+3i
ok 257 - 0/1 + 2+3i = 2+3i
ok 258 - 2+3i - 0 = 2+3i
ok 259 - 0 - 2+3i = -2+3i
ok 260 - 2+3i - 0.0.Num = 2+3i
ok 261 - 0.0.Num - 2+3i = -2+3i
ok 262 - 2+3i - 0/1 = 2+3i
ok 263 - 0/1 - 2+3i = -2+3i
ok 264 - 2+3i + 2
ok 265 - 2 + 2+3i
ok 266 - 2+3i + 2.5.Num = 2+3i
ok 267 - 2.5.Num + 2+3i = 2+3i
ok 268 - 2+3i + 3/2
ok 269 - 3/2 + 2+3i
ok 270 - 2+3i - 2
ok 271 - 2 - 2+3i
ok 272 - 2+3i - 2.5.Num = 2+3i
ok 273 - 2.5.Num - 2+3i = 2+3i
ok 274 - 2+3i - 3/2
ok 275 - 3/2 - 2+3i
ok 276 - 2-3i + 0 = 2-3i
ok 277 - 0 + 2-3i = 2-3i
ok 278 - 2-3i + 0.0.Num = 2-3i
ok 279 - 0.0.Num + 2-3i = 2-3i
ok 280 - 2-3i + 0/1 = 2-3i
ok 281 - 0/1 + 2-3i = 2-3i
ok 282 - 2-3i - 0 = 2-3i
ok 283 - 0 - 2-3i = -2-3i
ok 284 - 2-3i - 0.0.Num = 2-3i
ok 285 - 0.0.Num - 2-3i = -2-3i
ok 286 - 2-3i - 0/1 = 2-3i
ok 287 - 0/1 - 2-3i = -2-3i
ok 288 - 2-3i + 2
ok 289 - 2 + 2-3i
ok 290 - 2-3i + 2.5.Num = 2-3i
ok 291 - 2.5.Num + 2-3i = 2-3i
ok 292 - 2-3i + 3/2
ok 293 - 3/2 + 2-3i
ok 294 - 2-3i - 2
ok 295 - 2 - 2-3i
ok 296 - 2-3i - 2.5.Num = 2-3i
ok 297 - 2.5.Num - 2-3i = 2-3i
ok 298 - 2-3i - 3/2
ok 299 - 3/2 - 2-3i
ok 300 - -2+3i + 0 = -2+3i
ok 301 - 0 + -2+3i = -2+3i
ok 302 - -2+3i + 0.0.Num = -2+3i
ok 303 - 0.0.Num + -2+3i = -2+3i
ok 304 - -2+3i + 0/1 = -2+3i
ok 305 - 0/1 + -2+3i = -2+3i
ok 306 - -2+3i - 0 = -2+3i
ok 307 - 0 - -2+3i = --2+3i
ok 308 - -2+3i - 0.0.Num = -2+3i
ok 309 - 0.0.Num - -2+3i = --2+3i
ok 310 - -2+3i - 0/1 = -2+3i
ok 311 - 0/1 - -2+3i = --2+3i
ok 312 - -2+3i + 2
ok 313 - 2 + -2+3i
ok 314 - -2+3i + 2.5.Num = -2+3i
ok 315 - 2.5.Num + -2+3i = -2+3i
ok 316 - -2+3i + 3/2
ok 317 - 3/2 + -2+3i
ok 318 - -2+3i - 2
ok 319 - 2 - -2+3i
ok 320 - -2+3i - 2.5.Num = -2+3i
ok 321 - 2.5.Num - -2+3i = -2+3i
ok 322 - -2+3i - 3/2
ok 323 - 3/2 - -2+3i
ok 324 - -2-3i + 0 = -2-3i
ok 325 - 0 + -2-3i = -2-3i
ok 326 - -2-3i + 0.0.Num = -2-3i
ok 327 - 0.0.Num + -2-3i = -2-3i
ok 328 - -2-3i + 0/1 = -2-3i
ok 329 - 0/1 + -2-3i = -2-3i
ok 330 - -2-3i - 0 = -2-3i
ok 331 - 0 - -2-3i = --2-3i
ok 332 - -2-3i - 0.0.Num = -2-3i
ok 333 - 0.0.Num - -2-3i = --2-3i
ok 334 - -2-3i - 0/1 = -2-3i
ok 335 - 0/1 - -2-3i = --2-3i
ok 336 - -2-3i + 2
ok 337 - 2 + -2-3i
ok 338 - -2-3i + 2.5.Num = -2-3i
ok 339 - 2.5.Num + -2-3i = -2-3i
ok 340 - -2-3i + 3/2
ok 341 - 3/2 + -2-3i
ok 342 - -2-3i - 2
ok 343 - 2 - -2-3i
ok 344 - -2-3i - 2.5.Num = -2-3i
ok 345 - 2.5.Num - -2-3i = -2-3i
ok 346 - -2-3i - 3/2
ok 347 - 3/2 - -2-3i
ok 348 - 0.453596121425577+0.891207360061435i + 0 = 0.453596121425577+0.891207360061435i
ok 349 - 0 + 0.453596121425577+0.891207360061435i = 0.453596121425577+0.891207360061435i
ok 350 - 0.453596121425577+0.891207360061435i + 0.0.Num = 0.453596121425577+0.891207360061435i
ok 351 - 0.0.Num + 0.453596121425577+0.891207360061435i = 0.453596121425577+0.891207360061435i
ok 352 - 0.453596121425577+0.891207360061435i + 0/1 = 0.453596121425577+0.891207360061435i
ok 353 - 0/1 + 0.453596121425577+0.891207360061435i = 0.453596121425577+0.891207360061435i
ok 354 - 0.453596121425577+0.891207360061435i - 0 = 0.453596121425577+0.891207360061435i
ok 355 - 0 - 0.453596121425577+0.891207360061435i = -0.453596121425577+0.891207360061435i
ok 356 - 0.453596121425577+0.891207360061435i - 0.0.Num = 0.453596121425577+0.891207360061435i
ok 357 - 0.0.Num - 0.453596121425577+0.891207360061435i = -0.453596121425577+0.891207360061435i
ok 358 - 0.453596121425577+0.891207360061435i - 0/1 = 0.453596121425577+0.891207360061435i
ok 359 - 0/1 - 0.453596121425577+0.891207360061435i = -0.453596121425577+0.891207360061435i
ok 360 - 0.453596121425577+0.891207360061435i + 2
ok 361 - 2 + 0.453596121425577+0.891207360061435i
ok 362 - 0.453596121425577+0.891207360061435i + 2.5.Num = 0.453596121425577+0.891207360061435i
ok 363 - 2.5.Num + 0.453596121425577+0.891207360061435i = 0.453596121425577+0.891207360061435i
ok 364 - 0.453596121425577+0.891207360061435i + 3/2
ok 365 - 3/2 + 0.453596121425577+0.891207360061435i
ok 366 - 0.453596121425577+0.891207360061435i - 2
ok 367 - 2 - 0.453596121425577+0.891207360061435i
ok 368 - 0.453596121425577+0.891207360061435i - 2.5.Num = 0.453596121425577+0.891207360061435i
ok 369 - 2.5.Num - 0.453596121425577+0.891207360061435i = 0.453596121425577+0.891207360061435i
ok 370 - 0.453596121425577+0.891207360061435i - 3/2
ok 371 - 3/2 - 0.453596121425577+0.891207360061435i
ok 372 - -0.999135150273279+0.0415806624332905i + 0 = -0.999135150273279+0.0415806624332905i
ok 373 - 0 + -0.999135150273279+0.0415806624332905i = -0.999135150273279+0.0415806624332905i
ok 374 - -0.999135150273279+0.0415806624332905i + 0.0.Num = -0.999135150273279+0.0415806624332905i
ok 375 - 0.0.Num + -0.999135150273279+0.0415806624332905i = -0.999135150273279+0.0415806624332905i
ok 376 - -0.999135150273279+0.0415806624332905i + 0/1 = -0.999135150273279+0.0415806624332905i
ok 377 - 0/1 + -0.999135150273279+0.0415806624332905i = -0.999135150273279+0.0415806624332905i
ok 378 - -0.999135150273279+0.0415806624332905i - 0 = -0.999135150273279+0.0415806624332905i
ok 379 - 0 - -0.999135150273279+0.0415806624332905i = --0.999135150273279+0.0415806624332905i
ok 380 - -0.999135150273279+0.0415806624332905i - 0.0.Num = -0.999135150273279+0.0415806624332905i
ok 381 - 0.0.Num - -0.999135150273279+0.0415806624332905i = --0.999135150273279+0.0415806624332905i
ok 382 - -0.999135150273279+0.0415806624332905i - 0/1 = -0.999135150273279+0.0415806624332905i
ok 383 - 0/1 - -0.999135150273279+0.0415806624332905i = --0.999135150273279+0.0415806624332905i
ok 384 - -0.999135150273279+0.0415806624332905i + 2
ok 385 - 2 + -0.999135150273279+0.0415806624332905i
ok 386 - -0.999135150273279+0.0415806624332905i + 2.5.Num = -0.999135150273279+0.0415806624332905i
ok 387 - 2.5.Num + -0.999135150273279+0.0415806624332905i = -0.999135150273279+0.0415806624332905i
ok 388 - -0.999135150273279+0.0415806624332905i + 3/2
ok 389 - 3/2 + -0.999135150273279+0.0415806624332905i
ok 390 - -0.999135150273279+0.0415806624332905i - 2
ok 391 - 2 - -0.999135150273279+0.0415806624332905i
ok 392 - -0.999135150273279+0.0415806624332905i - 2.5.Num = -0.999135150273279+0.0415806624332905i
ok 393 - 2.5.Num - -0.999135150273279+0.0415806624332905i = -0.999135150273279+0.0415806624332905i
ok 394 - -0.999135150273279+0.0415806624332905i - 3/2
ok 395 - 3/2 - -0.999135150273279+0.0415806624332905i
ok 396 - 0.37797774271298-0.925814682327732i + 0 = 0.37797774271298-0.925814682327732i
ok 397 - 0 + 0.37797774271298-0.925814682327732i = 0.37797774271298-0.925814682327732i
ok 398 - 0.37797774271298-0.925814682327732i + 0.0.Num = 0.37797774271298-0.925814682327732i
ok 399 - 0.0.Num + 0.37797774271298-0.925814682327732i = 0.37797774271298-0.925814682327732i
ok 400 - 0.37797774271298-0.925814682327732i + 0/1 = 0.37797774271298-0.925814682327732i
ok 401 - 0/1 + 0.37797774271298-0.925814682327732i = 0.37797774271298-0.925814682327732i
ok 402 - 0.37797774271298-0.925814682327732i - 0 = 0.37797774271298-0.925814682327732i
ok 403 - 0 - 0.37797774271298-0.925814682327732i = -0.37797774271298-0.925814682327732i
ok 404 - 0.37797774271298-0.925814682327732i - 0.0.Num = 0.37797774271298-0.925814682327732i
ok 405 - 0.0.Num - 0.37797774271298-0.925814682327732i = -0.37797774271298-0.925814682327732i
ok 406 - 0.37797774271298-0.925814682327732i - 0/1 = 0.37797774271298-0.925814682327732i
ok 407 - 0/1 - 0.37797774271298-0.925814682327732i = -0.37797774271298-0.925814682327732i
ok 408 - 0.37797774271298-0.925814682327732i + 2
ok 409 - 2 + 0.37797774271298-0.925814682327732i
ok 410 - 0.37797774271298-0.925814682327732i + 2.5.Num = 0.37797774271298-0.925814682327732i
ok 411 - 2.5.Num + 0.37797774271298-0.925814682327732i = 0.37797774271298-0.925814682327732i
ok 412 - 0.37797774271298-0.925814682327732i + 3/2
ok 413 - 3/2 + 0.37797774271298-0.925814682327732i
ok 414 - 0.37797774271298-0.925814682327732i - 2
ok 415 - 2 - 0.37797774271298-0.925814682327732i
ok 416 - 0.37797774271298-0.925814682327732i - 2.5.Num = 0.37797774271298-0.925814682327732i
ok 417 - 2.5.Num - 0.37797774271298-0.925814682327732i = 0.37797774271298-0.925814682327732i
ok 418 - 0.37797774271298-0.925814682327732i - 3/2
ok 419 - 3/2 - 0.37797774271298-0.925814682327732i
ok 420 - 24.3847348271508+25.1074631814833i + 0 = 24.3847348271508+25.1074631814833i
ok 421 - 0 + 24.3847348271508+25.1074631814833i = 24.3847348271508+25.1074631814833i
ok 422 - 24.3847348271508+25.1074631814833i + 0.0.Num = 24.3847348271508+25.1074631814833i
ok 423 - 0.0.Num + 24.3847348271508+25.1074631814833i = 24.3847348271508+25.1074631814833i
ok 424 - 24.3847348271508+25.1074631814833i + 0/1 = 24.3847348271508+25.1074631814833i
ok 425 - 0/1 + 24.3847348271508+25.1074631814833i = 24.3847348271508+25.1074631814833i
ok 426 - 24.3847348271508+25.1074631814833i - 0 = 24.3847348271508+25.1074631814833i
ok 427 - 0 - 24.3847348271508+25.1074631814833i = -24.3847348271508+25.1074631814833i
ok 428 - 24.3847348271508+25.1074631814833i - 0.0.Num = 24.3847348271508+25.1074631814833i
ok 429 - 0.0.Num - 24.3847348271508+25.1074631814833i = -24.3847348271508+25.1074631814833i
ok 430 - 24.3847348271508+25.1074631814833i - 0/1 = 24.3847348271508+25.1074631814833i
ok 431 - 0/1 - 24.3847348271508+25.1074631814833i = -24.3847348271508+25.1074631814833i
ok 432 - 24.3847348271508+25.1074631814833i + 2
ok 433 - 2 + 24.3847348271508+25.1074631814833i
ok 434 - 24.3847348271508+25.1074631814833i + 2.5.Num = 24.3847348271508+25.1074631814833i
ok 435 - 2.5.Num + 24.3847348271508+25.1074631814833i = 24.3847348271508+25.1074631814833i
ok 436 - 24.3847348271508+25.1074631814833i + 3/2
ok 437 - 3/2 + 24.3847348271508+25.1074631814833i
ok 438 - 24.3847348271508+25.1074631814833i - 2
ok 439 - 2 - 24.3847348271508+25.1074631814833i
ok 440 - 24.3847348271508+25.1074631814833i - 2.5.Num = 24.3847348271508+25.1074631814833i
ok 441 - 2.5.Num - 24.3847348271508+25.1074631814833i = 24.3847348271508+25.1074631814833i
ok 442 - 24.3847348271508+25.1074631814833i - 3/2
ok 443 - 3/2 - 24.3847348271508+25.1074631814833i
ok 444 - -33.9240012684163-21.1934456363397i + 0 = -33.9240012684163-21.1934456363397i
ok 445 - 0 + -33.9240012684163-21.1934456363397i = -33.9240012684163-21.1934456363397i
ok 446 - -33.9240012684163-21.1934456363397i + 0.0.Num = -33.9240012684163-21.1934456363397i
ok 447 - 0.0.Num + -33.9240012684163-21.1934456363397i = -33.9240012684163-21.1934456363397i
ok 448 - -33.9240012684163-21.1934456363397i + 0/1 = -33.9240012684163-21.1934456363397i
ok 449 - 0/1 + -33.9240012684163-21.1934456363397i = -33.9240012684163-21.1934456363397i
ok 450 - -33.9240012684163-21.1934456363397i - 0 = -33.9240012684163-21.1934456363397i
ok 451 - 0 - -33.9240012684163-21.1934456363397i = --33.9240012684163-21.1934456363397i
ok 452 - -33.9240012684163-21.1934456363397i - 0.0.Num = -33.9240012684163-21.1934456363397i
ok 453 - 0.0.Num - -33.9240012684163-21.1934456363397i = --33.9240012684163-21.1934456363397i
ok 454 - -33.9240012684163-21.1934456363397i - 0/1 = -33.9240012684163-21.1934456363397i
ok 455 - 0/1 - -33.9240012684163-21.1934456363397i = --33.9240012684163-21.1934456363397i
ok 456 - -33.9240012684163-21.1934456363397i + 2
ok 457 - 2 + -33.9240012684163-21.1934456363397i
ok 458 - -33.9240012684163-21.1934456363397i + 2.5.Num = -33.9240012684163-21.1934456363397i
ok 459 - 2.5.Num + -33.9240012684163-21.1934456363397i = -33.9240012684163-21.1934456363397i
ok 460 - -33.9240012684163-21.1934456363397i + 3/2
ok 461 - 3/2 + -33.9240012684163-21.1934456363397i
ok 462 - -33.9240012684163-21.1934456363397i - 2
ok 463 - 2 - -33.9240012684163-21.1934456363397i
ok 464 - -33.9240012684163-21.1934456363397i - 2.5.Num = -33.9240012684163-21.1934456363397i
ok 465 - 2.5.Num - -33.9240012684163-21.1934456363397i = -33.9240012684163-21.1934456363397i
ok 466 - -33.9240012684163-21.1934456363397i - 3/2
ok 467 - 3/2 - -33.9240012684163-21.1934456363397i
ok 468 - Complex.re works
ok 469 - Complex.im works
ok 470 - Complex 0 ** Int works
ok 471 - Complex 0 ** Rat works
ok 472 - Complex 0 ** Complex works
ok 473 - Real 0 ** Complex works
ok 474 - exp(3.0 * log(1i))
ok 475 - same as wrapped as sub
ok 476 - log e base i == -2i / pi
ok 477 - 3i + "1"
ok 478 - "1" + 3i
ok 479 - 3i - "1"
ok 480 - "1" - 3i
ok 481 - 3i * "1"
ok 482 - "1" * 3i
ok 483 - 3i / "1"
ok 484 - "1" / 3i
ok 485 - 3i ** "1"
ok 486 - "1" ** 3i
ok 487 - conj 2+3i -> 2-3i
ok 488 - conj 5-4i -> 5+4i
ok 489 - <2+2i> cmp <2+2i>
ok 490 - <2-2i> cmp <2-2i>
ok 491 - <-2-2i> cmp <-2-2i>
ok 492 - <-2+2i> cmp <-2+2i>
ok 493 - <12+2i> cmp <2+2i>
ok 494 - <-2+2i> cmp <2+2i>
ok 495 - <2-12i> cmp <2-2i>
ok 496 - <12-2i> cmp <2-2i>
ok 497 - <2+12i> cmp <2+2i>
ok 498 - <2-12i> cmp <2-2i>
ok 499 - <2+2i> cmp <12+2i>
ok 500 - <2+2i> cmp <12+2i>
ok 501 - <2+2i> cmp 2
ok 502 - <2-2i> cmp 2
ok 503 - <2+0i> cmp 2
ok 504 - 2 cmp <2-0i>
ok 505 - 1 cmp <2-2i>
ok 506 - 2 cmp <2+0i>
ok 507 - 2 cmp <2-2i>
ok 508 - 2 cmp <2+2i>
ok 509 - <NaN+0i> cmp <0+0i>
ok 510 - <0+NaNi> cmp <0+0i>
ok 511 - Num(Complex) pays attention to $*TOLERANCE
1..2
ok 1 - 'Num(exp i * π)' died
ok 2 - right exception type (Exception)
ok 512 - Num(Complex) pays attention to $*TOLERANCE
Saw 1 occurrence of deprecated code.
================================================================================
Sub is_approx (from Test) seen at:
/tmp/dB2ZEc88my, lines 108,109,110,111,116,119,122,17,18,24,25,26,34,35,36,37,38,39,42,44,46,55,57,59,70,71,72,73,74,75,77,78,79,80,81,82,84,85,86,87,88,89,91,92,93,94,95,96
Please use is-approx instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment