Passed: 0 / 2 Total Score: 0.7 / 10.0

Test Simplify Take2

Status:

Failed

Score:

0.465 / 5.0

Observed (Your Actual Output)

Enter a word: python
Enter a word: professor
Enter a word: ameliorate
Enter a word: math
Enter a word: hi
Enter a word: cheese
Enter a word: 
Enter a word: 6
Enter a word: 
Exception: input() called more times than expected
  File "simplify_take2.py", line 38, in <module>
    main()
  File "simplify_take2.py", line 31, in main
    words = get_words()
            ^^^^^^^^^^^
  File "simplify_take2.py", line 4, in get_words
    word = input('Enter a word: ')
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/gbean/opt/miniconda3/envs/cs110/lib/python3.11/site-packages/byu_pytest_utils/dialog.py", line 380, in _py_input
    raise Exception("input() called more times than expected")
Exception: input() called more times than expected

Expected (Correct Output)

Enter a word: python
Enter a word: professor
Enter a word: ameliorate
Enter a word: math
Enter a word: hi
Enter a word: cheese
Enter a word: 
Enter a length: 6
There are 4 short words:
- python
- math
- hi
- cheese

Test Simplify Take2 Test2

Status:

Failed

Score:

0.235 / 5.0

Observed (Your Actual Output)

Enter a word: ruby
Enter a word: teacher
Enter a word: stupendous
Enter a word: calculus
Enter a word: bye
Enter a word: chicken
Enter a word: 
Enter a word: 6
Enter a word: 
Exception: input() called more times than expected
  File "simplify_take2.py", line 38, in <module>
    main()
  File "simplify_take2.py", line 31, in main
    words = get_words()
            ^^^^^^^^^^^
  File "simplify_take2.py", line 4, in get_words
    word = input('Enter a word: ')
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/gbean/opt/miniconda3/envs/cs110/lib/python3.11/site-packages/byu_pytest_utils/dialog.py", line 380, in _py_input
    raise Exception("input() called more times than expected")
Exception: input() called more times than expected

Expected (Correct Output)

Enter a word: ruby
Enter a word: teacher
Enter a word: stupendous
Enter a word: calculus
Enter a word: bye
Enter a word: chicken
Enter a word: 
Enter a length: 6
There are 2 short words:
- ruby
- bye