cmc-csci040 icon indicating copy to clipboard operation
cmc-csci040 copied to clipboard

lab first_three typo?

Open charlottegjordan opened this issue 9 months ago • 1 comments

I think there might be a typo in the description of the first_three function in the lab, it has the same instructions as the last_three function (i'm assuming we just return the first three numbers of xs, but I wanted to double check)

charlottegjordan avatar Feb 15 '25 01:02 charlottegjordan

You're correct. The test cases for the function are correct, but the English description has a typo. The important part here is to pass the test cases.

(This is an accidental lesson about why we have test cases... the test cases are always guaranteed to be correct for code because they can be machine checked. The English descriptions, however, are not machine checked, and so they often have errors.)

mikeizbicki avatar Feb 15 '25 05:02 mikeizbicki