Python Forum
John Guttag Book - Finger Exercise 4 - need help to make the code better
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
John Guttag Book - Finger Exercise 4 - need help to make the code better
#6
There's a tool that helps, unittest: https://docs.python.org/3.6/library/unittest.html
but I don't know of any tool that's smart enough to test all cases. If you can identify all possible
inputs, and know all possible outputs, a truth table works well.
There is also a coverage tool: https://pypi.python.org/pypi/coverage/4.5.1
and others: https://pypi.python.org/pypi/coverage/4.5.1
Reply


Messages In This Thread
RE: John Guttag Book - Finger Exercise 4 - need help to make the code better - by Larz60+ - Feb-13-2018, 12:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  py4e book exercise not working when compiled adriand 11 8,944 Jul-01-2020, 08:42 AM
Last Post: tawhidbd1248
  [split] help me make this code better please (basic) Rustam 2 2,267 Jun-19-2020, 01:27 PM
Last Post: Rustam
  How to make this dictionary-generating code more efficient? Mark17 4 2,383 Oct-08-2019, 07:42 PM
Last Post: Mark17
  Book exercise in lists sonedap 17 7,077 Feb-03-2019, 08:37 PM
Last Post: ichabod801
  Creating code to make up to 4 turtle move simultaneously in a random heading J0k3r 3 5,492 Mar-05-2018, 03:48 PM
Last Post: mpd
  How to make faster this code Ace 1 2,971 Oct-23-2017, 12:11 PM
Last Post: Larz60+
  How can I make faster that code BlueEva00 1 2,698 Oct-18-2017, 03:51 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020