Skip to content

Commit

Permalink
DC-5198 - fix unrelated test case that assumed invalid value
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Dec 13, 2024
1 parent 6d43add commit 587f0b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/functions/BitSHLN.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{
application action="update" preciseMath=true;
assertEquals("4294967294", toString(BitSHLN(2147483647, 1))); // 2147483647 << 1 = 0 (overflow)
application action="update" preciseMath=false;
assertEquals("2147483647", toString(BitSHLN(2147483647, 1))); // 2147483647 << 1 = 0 (overflow)
assertEquals("4294967294", toString(BitSHLN(2147483647, 1))); // 2147483647 << 1 = 0 (overflow)
});

it(title="Checking BitSHLN() function with negative shift", body = function(currentSpec) {
Expand Down
2 changes: 1 addition & 1 deletion test/functions/BitSHRN.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase"{
application action="update" preciseMath=true;
assertEquals("2147483647", BitSHRN(4294967295, 1)); // Large number shifted right
application action="update" preciseMath=false;
assertEquals("2147483648", BitSHRN(4294967295, 1)); // Large number shifted right
assertEquals("2147483647", BitSHRN(4294967295, 1)); // Large number shifted right
});

it(title="Checking BitSHRN() function with negative numbers", body = function(currentSpec) {
Expand Down

0 comments on commit 587f0b4

Please sign in to comment.