Drop tests that pass a decimal where an integer is declared

#3
by zhihechen - opened

Some tests passed decimals (e.g. 10.5) to parameters LeetCode declares as integers: Python/C++/JS accept or round them, but Go and Rust cannot parse them, so only those languages failed. Such tests are now dropped for every language (also expected answers that are fractions where an integer is returned; whole-number floats like 59048.0 stay). Test: 16 tests in 3392, 3453, 3454 (now 18,054 tests, still 191 problems). Train: 43 tests in 18 problems (still 2,103 problems). Every kept problem's reference solution still passes. Built with build_dataset.py on msl-multilingual-self-learning branch dataset-v2 (commit fdd735a).

zhihechen changed pull request status to open
lintang changed pull request status to merged

Sign up or log in to comment