[Question][Hw2] Got some tests wrong when using Int32 library for arithmetic operations #292
-
Name: 박수찬 YOUR QUESTION I got 77/77 tests correct when I used In my repository, I'm wondering if there is a test causing int32 overflow in the hidden tests. Also, given that signed integer overflow in C is undefined behavior, should I raise |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, you must indeed raise Invalid_argument for any undefined behaviors. |
Beta Was this translation helpful? Give feedback.
-
Checked that it doesn't affect the result, thanks. |
Beta Was this translation helpful? Give feedback.
Hi, you must indeed raise Invalid_argument for any undefined behaviors.
However, the specific test case you mentioned was a mistake, and we will fix it so that both of your branches can pass.