about summary refs log tree commit diff
path: root/src/test/run-fail/overflowing-pow-unsigned.rs
AgeCommit message (Collapse)AuthorLines
2020-05-06Move tests from `test/run-fail` to UIYuki Okushi-6/+0
2018-12-25Remove licensesMark Rousskov-10/+0
2016-08-06Change the expected panic message for unsignedCaleb Jones-1/+1
2016-08-06Fix overflow checking in unsigned pow()Caleb Jones-0/+16
The pow() method for unsigned integers produced 0 instead of trapping overflow for certain inputs. Calls such as 2u32.pow(1024) produced 0 when they should trap an overflow. This also adds tests for the correctly handling overflow in unsigned pow(). For issue number #34913