-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assignment 2.7 read_word definition doesn't match test harness or solution code #20
Comments
Thank you for reporting this. It should be fixed in #23. Please tell me if this worked for you -- I've added some more tests as well. |
I get further this time, but the last test for
The test:
The first 19 characters + terminating null expected by the test harness and sample code - whereas the book requirements are to return 0 when too big. Also, I found an errata at the end of the chapter (sorry, I bought the book on Kindle so I don't have real page numbers). Footnote 7 lists the codes for what is considered whitespace. 0x10 is not new line. It should be 0xA or decimal 10. |
|
👍 Works now. Thanks! Kindle reformats for the size of device so it doesn't have real page numbers. Section numbers would be great for errata. And yes, footnotes are at the end of the chapter. |
The definition for
read_word
:Test harness and code appear to expect
read_word
to useword_buffer
memory location instead of arguments.The text was updated successfully, but these errors were encountered: