Files
swift/test/unit
Alistair Coles e984de864d trivial: assert non_negative_int treats float as valid
Prior to the Related-Change, non_negative_int would raise a ValueError
if it was passed a positive float. It now casts the float to an int,
which is consistent with the docstring.

This patch adds test assertions to verify this behavior, and similar
behavior of config_positive_int_value.

Change-Id: I5d62e14c228544af634190f16321ee97a8c4211c
Related-Change: I06508279d59fa57296dd85548f271a7812aeb45f
2024-07-17 10:25:10 +01:00
..
2019-06-19 09:54:14 -07:00
2024-04-30 20:27:47 +00:00
2024-05-02 08:30:54 -07:00