# Final Error of Assignment 1

Got it down from 9 errors to two. Last one seems to be the real stumper. Can’t tell if it’s telling me my questions are out of place?

Failures:

62 1) Candidate Testing solution questions contain the provided questions with trailing spaces

63 Message:

64 Expected [ '1: Who was the first American woman in space? ', '2: True or false: 5000 meters == 5 kilometers? ', '3: (5+3)/2*10 = ? ', '4: Given the array [8, Orbit, Trajectory, 45], what entry is at index 2? ', '5: What is the minimum crew size for the ISS? ’ ] to contain 'Who was the first American woman in space? '.

65 Stack:

66 Error: Expected [ '1: Who was the first American woman in space? ', '2: True or false: 5000 meters == 5 kilometers? ', '3: (5+3)/2*10 = ? ', '4: Given the array [8, Orbit, Trajectory, 45], what entry is at index 2? ', '5: What is the minimum crew size for the ISS? ’ ] to contain 'Who was the first American woman in space? '.

67 at

68 at UserContext. (/home/runner/work/assignment-1-candidate-testing-ItsTonyDee/assignment-1-candidate-testing-ItsTonyDee/spec/candidate-testing.spec.js:41:30)

69 at

70 Message:

71 Expected [ '1: Who was the first American woman in space? ', '2: True or false: 5000 meters == 5 kilometers? ', '3: (5+3)/2*10 = ? ', '4: Given the array [8, Orbit, Trajectory, 45], what entry is at index 2? ', '5: What is the minimum crew size for the ISS? ’ ] to contain 'True or false: 5 kilometer == 5000 meters? '.

72 Stack:

73 Error: Expected [ '1: Who was the first American woman in space? ', '2: True or false: 5000 meters == 5 kilometers? ', '3: (5+3)/2*10 = ? ', '4: Given the array [8, Orbit, Trajectory, 45], what entry is at index 2? ', '5: What is the minimum crew size for the ISS? ’ ] to contain 'True or false: 5 kilometer == 5000 meters? '.

74 at

75 at UserContext. (/home/runner/work/assignment-1-candidate-testing-ItsTonyDee/assignment-1-candidate-testing-ItsTonyDee/spec/candidate-testing.spec.js:42:32)

76 at

77 Message:

78 Expected [ '1: Who was the first American woman in space? ', '2: True or false: 5000 meters == 5 kilometers? ', '3: (5+3)/2*10 = ? ', '4: Given the array [8, Orbit, Trajectory, 45], what entry is at index 2? ', '5: What is the minimum crew size for the ISS? ’ ] to contain '(5 + 3)/2 * 10 = ? '.

79 Stack:

80 Error: Expected [ '1: Who was the first American woman in space? ', '2: True or false: 5000 meters == 5 kilometers? ', '3: (5+3)/2*10 = ? ', '4: Given the array [8, Orbit, Trajectory, 45], what entry is at index 2? ', '5: What is the minimum crew size for the ISS? ’ ] to contain '(5 + 3)/2 * 10 = ? '.

81 at

82 at UserContext. (/home/runner/work/assignment-1-candidate-testing-ItsTonyDee/assignment-1-candidate-testing-ItsTonyDee/spec/candidate-testing.spec.js:43:32)

83 at

84 Message:

85 Expected [ '1: Who was the first American woman in space? ', '2: True or false: 5000 meters == 5 kilometers? ', '3: (5+3)/2*10 = ? ', '4: Given the array [8, Orbit, Trajectory, 45], what entry is at index 2? ', '5: What is the minimum crew size for the ISS? ’ ] to contain 'Given the array [8, ‘Orbit’, ‘Trajectory’, 45], what entry is at index 2? '.

86 Stack:

87 Error: Expected [ '1: Who was the first American woman in space? ', '2: True or false: 5000 meters == 5 kilometers? ', '3: (5+3)/2*10 = ? ', '4: Given the array [8, Orbit, Trajectory, 45], what entry is at index 2? ', '5: What is the minimum crew size for the ISS? ’ ] to contain 'Given the array [8, ‘Orbit’, ‘Trajectory’, 45], what entry is at index 2? '.

88 at

89 at UserContext. (/home/runner/work/assignment-1-candidate-testing-ItsTonyDee/assignment-1-candidate-testing-ItsTonyDee/spec/candidate-testing.spec.js:44:32)

90 at

91 Message:

92 Expected [ '1: Who was the first American woman in space? ', '2: True or false: 5000 meters == 5 kilometers? ', '3: (5+3)/2*10 = ? ', '4: Given the array [8, Orbit, Trajectory, 45], what entry is at index 2? ', '5: What is the minimum crew size for the ISS? ’ ] to contain 'What is the minimum crew size for the ISS? '.

93 Stack:

94 Error: Expected [ '1: Who was the first American woman in space? ', '2: True or false: 5000 meters == 5 kilometers? ', '3: (5+3)/2*10 = ? ', '4: Given the array [8, Orbit, Trajectory, 45], what entry is at index 2? ', '5: What is the minimum crew size for the ISS? ’ ] to contain 'What is the minimum crew size for the ISS? '.

95 at

96 at UserContext. (/home/runner/work/assignment-1-candidate-testing-ItsTonyDee/assignment-1-candidate-testing-ItsTonyDee/spec/candidate-testing.spec.js:45:32)

97 at

Hey Tony, you’ve got the same quotes inside '4: Given the array [8, Orbit, Trajectory, 45], what entry is at index 2? ’ and out. That’s breaking that single question into several statements. If you have quotes inside of quotes you need to keep them separate. " ’ ’ "

Can you tell me where to find the exact errors they provide like you’ve shown?

Mine is producing exactly what it needs to do, but is failing and I can’t find why it’s failing. Thanks!

On github, click the red x, it should show you the errors there.

1 Like

Tony I’m not sure if you figured it out yet but the issue is that you have the question numbers inside the quotes. The quoted text must match exactly.