Closed emmaalbury closed 6 years ago
Hi Emma, The desired output is actually 31375 which is what you get if you add up all numbers from 1 to 250! let me know if you need anything else :)
Oh geez, I read the question wrong and wrote a a program that summed numbers to the total of 250. Teaches me for coding with late night brain fog. Thank you!
I've run Rspec on all my Chapter 4 quizzes and they all pass except Question 2. I get the error message "Failures: 1) Q2. Sum integers calculates 1 + 2 + 3 + ... + 250 and
puts
es the result Failure/Error: expect { load "questions/question_2.rb" } .to output(/#{expected}$/).to_stdoutI'm confused by this because I thought the desired output was 250. Which is what I'm getting. Why is it expecting "/31375"? Thank you.