Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

better test labels #21

Merged
merged 1 commit into from about 2 years ago

1 participant

Siddhant Saraf
Siddhant Saraf
Collaborator

No description provided.

Siddhant Saraf Siddhant merged commit 622ee63 into from
Siddhant Saraf Siddhant closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 13 additions and 13 deletions. Show diff stats Hide diff stats

  1. +13 13 S03-operators/overflow.t
26 S03-operators/overflow.t
@@ -148,9 +148,9 @@ sub tryeq_sloppy ($lhs, $rhs, $todo1 = '') {
148 148 }
149 149
150 150 {
151   - is 2147483648 - 0, 2147483648, '2147483648 = 2147483648';
152   - is -2147483648 - 0, -2147483648, '-2147483648 = -2147483648';
153   - is 2000000000 - 4000000000, -2000000000, '-2000000000 = -2000000000';
  151 + is 2147483648 - 0, 2147483648, '2147483648 - 0 == 2147483648';
  152 + is -2147483648 - 0, -2147483648, '-2147483648 - 0 == -2147483648';
  153 + is 2000000000 - 4000000000, -2000000000, '2000000000 - 4000000000 == -2000000000';
154 154 }
155 155
156 156 # Believe it or not, this one overflows on 32-bit Rakduo as of 3/8/2010.
@@ -170,26 +170,26 @@ sub tryeq_sloppy ($lhs, $rhs, $todo1 = '') {
170 170 # On a 32 bit machine, if the i_multiply op is used, you will probably get
171 171 # -167772160. It's actually undefined behaviour, so anything may happen.
172 172 my $int = ($n % 1000) * 167772160;
173   - is $int, 21307064320, "$int = 21307064320";
  173 + is $int, 21307064320, '(1127 % 1000) * 167772160 == 21307064320';
174 174
175 175 }
176 176
177 177 {
178   - is -1 - -2147483648, 2147483647, '2147483647 = 2147483647';
179   - is 2 - -2147483648, 2147483650, '2147483650 = 2147483650';
  178 + is -1 - -2147483648, 2147483647, '-1 - -2147483648 == 2147483647';
  179 + is 2 - -2147483648, 2147483650, '2 - -2147483648 == 2147483650';
180 180
181   - is 4294967294 - 3, 4294967291, '4294967291 = 4294967291';
182   - is -2147483648 - -1, -2147483647, '-2147483647 = -2147483647';
  181 + is 4294967294 - 3, 4294967291, '4294967294 - 3 == 4294967291';
  182 + is -2147483648 - -1, -2147483647, '-2147483648 - -1 == -2147483647';
183 183
184 184 # IV - IV promote to UV
185   - is 2147483647 - -1, 2147483648, '2147483648 = 2147483648';
186   - is 2147483647 - -2147483648, 4294967295, '4294967295 = 4294967295';
  185 + is 2147483647 - -1, 2147483648, '2147483647 - -1 == 2147483648';
  186 + is 2147483647 - -2147483648, 4294967295, '2147483647 - -2147483648 == 4294967295';
187 187 # UV - IV promote to NV
188   - is 4294967294 - -3, 4294967297, '4294967297 = 4294967297';
  188 + is 4294967294 - -3, 4294967297, '4294967294 - -3 == 4294967297';
189 189 # IV - IV promote to NV
190   - is -2147483648 - +1, -2147483649, '-2147483649 = -2147483649';
  190 + is -2147483648 - +1, -2147483649, '-2147483648 - +1 == -2147483649';
191 191 # UV - UV promote to IV
192   - is 2147483648 - 2147483650, -2, '-2 = -2';
  192 + is 2147483648 - 2147483650, -2, '2147483648 - 2147483650 == -2';
193 193 }
194 194
195 195 # check with 0xFFFF and 0xFFFF

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.