The Python Oracle

assertAlmostEqual in Python unit-test for collections of floats

This video explains
assertAlmostEqual in Python unit-test for collections of floats

--

Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn

--

Track title: CC I Beethoven Sonata No 31 in A Flat M

--

Chapters
00:00 Question
03:44 Accepted answer (Score 9)
05:37 Answer 2 (Score 92)
06:23 Answer 3 (Score 14)
06:46 Answer 4 (Score 5)
07:17 Thank you

--

Full question
https://stackoverflow.com/questions/1213...

Question links:
[assertAlmostEqual(x, y)]: http://docs.python.org/library/unittest....
[Python's unit testing framework]: http://docs.python.org/library/unittest....

Accepted answer links:
[https://github.com/snakile/approximate_c...]: https://github.com/snakile/approximate_c...

Answer 3 links:
[pep-0485]: https://www.python.org/dev/peps/pep-0485/

Answer 4 links:
[here]: http://docs.scipy.org/doc/numpy/referenc...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #unittesting #collections

#avk47