[issue18745] Test enum in test_json is ignorant of infinity value
Vajrasky Kok
report at bugs.python.org
Mon Sep 2 05:51:59 CEST 2013
Vajrasky Kok added the comment:
To test the infinity, negative infinity, and NaN (Not a Number), you named the test as test_weird_floats. So implicitely, you admitted that they are floats but just weird. Yet, you named the sample data test class as NotNum. Implicitely, you were saying they are not numbers. This is contradictory.
In my personal opinion, I disagree slightly with the naming because infinity and negative infinity are numbers. Why not name it WeirdNum (or SpecialNum) to make it more mathematically correct and consistent with the test naming?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18745>
_______________________________________
More information about the Python-bugs-list
mailing list