Assignment 1 autograding error

Hello all,

I have no idea what the autograder output means. I ran my code successfully in repl.it and couldn’t break it, but the autograder apparently broken it rather easily… :frowning: what follows is the autograder output:

Run education/autograding@v1

::stop-commands::49d901a6-e22d-4239-a5b8-2797b7aceef1

:memo: Autograding Unit Tests

added 14 packages from 5 contributors and audited 14 packages in 0.951s

1 package is looking for funding
run npm fund for details

found 0 vulnerabilities

candidate-testing@1.0.0 test /home/runner/work/assignment-1-candidate-testing-nletcher17/assignment-1-candidate-testing-nletcher17
jasmine

Randomized with seed 42244
Started

  1. Who was the first American woman in space?
    Your Answer: Sally Ride
    Correct Answer: Sally Ride

  2. True or false: 5000 meters = 5 kilometers.
    Your Answer: bar
    Correct Answer: True

  3. (5+3)/2 * 10 = ?
    Your Answer: 40
    Correct Answer: 40

  4. Given the array [8, ‘Orbit’, ‘Trajectory’, 45], what entry is at index 2?
    Your Answer: lur
    Correct Answer: Trajectory

  5. What is the minimum crew size for the ISS?
    Your Answer: 3
    Correct Answer: 3

Overall Grade: 60% (3 of 5 responses correct) <<<
Status: FAILED <<<
.1) Who was the first American woman in space?
Your Answer: Sally Ride
Correct Answer: sally ride

  1. True or false: 5000 meters = 5 kilometers.
    Your Answer: bar
    Correct Answer: true

  2. (5+3)/2 * 10 = ?
    Your Answer: baz
    Correct Answer: 40

  3. Given the array [8, ‘Orbit’, ‘Trajectory’, 45], what entry is at index 2?
    Your Answer: lur
    Correct Answer: trajectory

  4. What is the minimum crew size for the ISS?
    Your Answer: 3
    Correct Answer: 3

Overall Grade: 100% (5 of 5 responses correct) <<<
Status: PASSED <<<
F1) Who was the first American woman in space?
Your Answer: Sally Ride
Correct Answer: sally ride

  1. True or false: 5000 meters = 5 kilometers.
    Your Answer: bar
    Correct Answer: true

  2. (5+3)/2 * 10 = ?
    Your Answer: baz
    Correct Answer: 40

  3. Given the array [8, ‘Orbit’, ‘Trajectory’, 45], what entry is at index 2?
    Your Answer: lur
    Correct Answer: trajectory

  4. What is the minimum crew size for the ISS?
    Your Answer: man
    Correct Answer: 3

Overall Grade: 120% (6 of 5 responses correct) <<<
Status: PASSED <<<
F1) Who was the first American woman in space?
Your Answer: sally ride
Correct Answer: sally ride

  1. True or false: 5000 meters = 5 kilometers.
    Your Answer: TRUE
    Correct Answer: true

  2. (5+3)/2 * 10 = ?
    Your Answer: 40
    Correct Answer: 40

  3. Given the array [8, ‘Orbit’, ‘Trajectory’, 45], what entry is at index 2?
    Your Answer: TrAjEcToRy
    Correct Answer: trajectory

  4. What is the minimum crew size for the ISS?
    Your Answer: 3
    Correct Answer: 3

Overall Grade: 220.00000000000003% (11 of 5 responses correct) <<<
Status: PASSED <<<
F1) Who was the first American woman in space?
Your Answer: Sally Ride
Correct Answer: sally ride

  1. True or false: 5000 meters = 5 kilometers.
    Your Answer: bar
    Correct Answer: true

  2. (5+3)/2 * 10 = ?
    Your Answer: 40
    Correct Answer: 40

  3. Given the array [8, ‘Orbit’, ‘Trajectory’, 45], what entry is at index 2?
    Your Answer: Trajectory
    Correct Answer: trajectory

  4. What is the minimum crew size for the ISS?
    Your Answer: 3
    Correct Answer: 3

Overall Grade: 300% (15 of 5 responses correct) <<<
Status: PASSED <<<
F.1) Who was the first American woman in space?
Your Answer: Sally Ride
Correct Answer: sally ride

  1. True or false: 5000 meters = 5 kilometers.
    Your Answer: true
    Correct Answer: true

  2. (5+3)/2 * 10 = ?
    Your Answer: 40
    Correct Answer: 40

  3. Given the array [8, ‘Orbit’, ‘Trajectory’, 45], what entry is at index 2?
    Your Answer: Trajectory
    Correct Answer: trajectory

  4. What is the minimum crew size for the ISS?
    Your Answer: 3
    Correct Answer: 3

Overall Grade: 400% (20 of 5 responses correct) <<<
Status: PASSED <<<
F1) Who was the first American woman in space?
Your Answer: foo
Correct Answer: sally ride

  1. True or false: 5000 meters = 5 kilometers.
    Your Answer: bar
    Correct Answer: true

  2. (5+3)/2 * 10 = ?
    Your Answer: baz
    Correct Answer: 40

  3. Given the array [8, ‘Orbit’, ‘Trajectory’, 45], what entry is at index 2?
    Your Answer: lur
    Correct Answer: trajectory

  4. What is the minimum crew size for the ISS?
    Your Answer: man
    Correct Answer: 3

Overall Grade: 400% (20 of 5 responses correct) <<<
Status: PASSED <<<
F.F…F…

Failures:

  1. Candidate Testing solution gradeQuiz returns 40 for two correct answers
    Message:
    Expected 100 to be 40.
    Stack:
    Error: Expected 100 to be 40.
    at
    at UserContext. (/home/runner/work/assignment-1-candidate-testing-nletcher17/assignment-1-candidate-testing-nletcher17/spec/candidate-testing.spec.js:80:59)
    at

  2. Candidate Testing solution gradeQuiz returns 20 for a single correct answer
    Message:
    Expected 120 to be 20.
    Stack:
    Error: Expected 120 to be 20.
    at
    at UserContext. (/home/runner/work/assignment-1-candidate-testing-nletcher17/assignment-1-candidate-testing-nletcher17/spec/candidate-testing.spec.js:75:59)
    at

  3. Candidate Testing solution gradeQuiz is case insensitive
    Message:
    Expected 220.00000000000003 to be 100.
    Stack:
    Error: Expected 220.00000000000003 to be 100.
    at
    at UserContext. (/home/runner/work/assignment-1-candidate-testing-nletcher17/assignment-1-candidate-testing-nletcher17/spec/candidate-testing.spec.js:95:59)
    at

  4. Candidate Testing solution gradeQuiz returns 80 for four correct answers
    Message:
    Expected 300 to be 80.
    Stack:
    Error: Expected 300 to be 80.
    at
    at UserContext. (/home/runner/work/assignment-1-candidate-testing-nletcher17/assignment-1-candidate-testing-nletcher17/spec/candidate-testing.spec.js:90:59)
    at

  5. Candidate Testing solution gradeQuiz returns 100 for all correct answers
    Message:
    Expected 400 to be 100.
    Stack:
    Error: Expected 400 to be 100.
    at
    at UserContext. (/home/runner/work/assignment-1-candidate-testing-nletcher17/assignment-1-candidate-testing-nletcher17/spec/candidate-testing.spec.js:70:59)
    at

  6. Candidate Testing solution gradeQuiz returns a 0 for all wrong answers
    Message:
    Expected 400 to be 0.
    Stack:
    Error: Expected 400 to be 0.
    at
    at UserContext. (/home/runner/work/assignment-1-candidate-testing-nletcher17/assignment-1-candidate-testing-nletcher17/spec/candidate-testing.spec.js:65:59)
    at

  7. Candidate Testing solution questions contain the provided questions with trailing spaces
    Message:
    Expected [ 'Who was the first American woman in space? ', 'True or false: 5000 meters = 5 kilometers. ', '(5+3)/2 * 10 = ? ', 'Given the array [8, ‘Orbit’, ‘Trajectory’, 45], what entry is at index 2? ', 'What is the minimum crew size for the ISS? ’ ] to contain 'True or false: 5 kilometer == 5000 meters? '.
    Stack:
    Error: Expected [ 'Who was the first American woman in space? ', 'True or false: 5000 meters = 5 kilometers. ', '(5+3)/2 * 10 = ? ', 'Given the array [8, ‘Orbit’, ‘Trajectory’, 45], what entry is at index 2? ', 'What is the minimum crew size for the ISS? ’ ] to contain 'True or false: 5 kilometer == 5000 meters? '.
    at
    at UserContext. (/home/runner/work/assignment-1-candidate-testing-nletcher17/assignment-1-candidate-testing-nletcher17/spec/candidate-testing.spec.js:42:32)
    at
    Message:
    Expected [ 'Who was the first American woman in space? ', 'True or false: 5000 meters = 5 kilometers. ', '(5+3)/2 * 10 = ? ', 'Given the array [8, ‘Orbit’, ‘Trajectory’, 45], what entry is at index 2? ', 'What is the minimum crew size for the ISS? ’ ] to contain '(5 + 3)/2 * 10 = ? '.
    Stack:
    Error: Expected [ 'Who was the first American woman in space? ', 'True or false: 5000 meters = 5 kilometers. ', '(5+3)/2 * 10 = ? ', 'Given the array [8, ‘Orbit’, ‘Trajectory’, 45], what entry is at index 2? ', 'What is the minimum crew size for the ISS? ’ ] to contain '(5 + 3)/2 * 10 = ? '.
    at
    at UserContext. (/home/runner/work/assignment-1-candidate-testing-nletcher17/assignment-1-candidate-testing-nletcher17/spec/candidate-testing.spec.js:43:32)
    at

  8. Candidate Testing solution correctAnswers gives the correct answers
    Message:
    Expected [ ‘sally ride’, ‘true’, ‘40’, ‘trajectory’, ‘3’ ] to contain ‘Sally Ride’.
    Stack:
    Error: Expected [ ‘sally ride’, ‘true’, ‘40’, ‘trajectory’, ‘3’ ] to contain ‘Sally Ride’.
    at
    at UserContext. (/home/runner/work/assignment-1-candidate-testing-nletcher17/assignment-1-candidate-testing-nletcher17/spec/candidate-testing.spec.js:54:35)
    at
    Message:
    Expected [ ‘sally ride’, ‘true’, ‘40’, ‘trajectory’, ‘3’ ] to contain ‘Trajectory’.
    Stack:
    Error: Expected [ ‘sally ride’, ‘true’, ‘40’, ‘trajectory’, ‘3’ ] to contain ‘Trajectory’.
    at
    at UserContext. (/home/runner/work/assignment-1-candidate-testing-nletcher17/assignment-1-candidate-testing-nletcher17/spec/candidate-testing.spec.js:57:37)
    at

17 specs, 8 failures
Finished in 0.026 seconds
Randomized with seed 42244 (jasmine --random=true --seed=42244)
npm ERR! Test failed. See above for more details.

:x: Autograding Unit Tests
::error::Error: Exit with code: 1 and signal: null

::49d901a6-e22d-4239-a5b8-2797b7aceef1::
Points 0/1

Autograder is expecting specific wording and spacing, look at where it says unexpected, it shows how you phrased the strings, then look at where it says expected, and it shows the exact word that is needed to fix the issues it is throwing. Take a look through the help forums, a lot of people are encountering this exact problem, and it might help give some more insight on what needs to be fixed. Hope that helps!