Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unit test roll die
#6
Testing integer_input() isn't feasible because of the input() call. As written, it will not return anything without an input value and it can't be tested without a return value. On a positive note, isolating the input into its own function lets us test the rest of the code.
Reply


Messages In This Thread
unit test roll die - by saladgg - Nov-06-2018, 04:41 AM
RE: unit test roll die - by woooee - Nov-06-2018, 05:42 AM
RE: unit test roll die - by stullis - Nov-06-2018, 11:43 AM
RE: unit test roll die - by saladgg - Nov-06-2018, 12:44 PM
RE: unit test roll die - by saladgg - Nov-06-2018, 02:50 PM
RE: unit test roll die - by stullis - Nov-06-2018, 11:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unit Testing Set Up and Use RockBlok 2 439 Jan-08-2024, 07:43 PM
Last Post: deanhystad
  How to test and import a model form computer to test accuracy using Sklearn library Anldra12 6 3,145 Jul-03-2021, 10:07 AM
Last Post: Anldra12
  Dice Roll (Find out how many rolls until specified streak) DustinKlent 4 4,018 Jun-13-2021, 09:44 AM
Last Post: Gribouillis
  Writing unit test results into a text file ateestructural 3 4,776 Nov-15-2020, 05:41 PM
Last Post: ateestructural
  Help with dice roll program kraco 4 2,121 Sep-22-2020, 02:06 PM
Last Post: kraco
  How to write test cases for a init function by Unit test in python? binhduonggttn 2 3,134 Feb-24-2020, 12:06 PM
Last Post: Larz60+
  How to write test cases by Unit test for database configuration file? binhduonggttn 0 2,571 Feb-18-2020, 08:03 AM
Last Post: binhduonggttn
  Remove function and unit test ftg 5 3,571 Jan-07-2020, 03:10 PM
Last Post: ndc85430
  Odd Unit Test Behavior ichabod801 3 2,604 Jan-02-2020, 03:34 PM
Last Post: ichabod801
  Define unit of measure of a number doug2019 3 2,408 Oct-15-2019, 03:43 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

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