assignment 2 part 2 - testing MULH and SLL

81 views
Skip to first unread message

KV

unread,
Oct 8, 2020, 12:05:08 AM10/8/20
to cmpt-295-sfu
SFU ID: 301296793
Github username: kvahidi
Github: Link to github repo (your assignment repos are private so these links are only accessible to TAs and Instructor) : https://github.com/CMPT-295-SFU/assignment-2-kvahidi
Line and file: part2_test.py (?)
Expected behavior: detect incorrect implementation for MULH and SLL
Observed behavior: test always passes
Question:
For part 2 of the assignment, I have run tests on R.trace a bunch of times and they have been passing. Then I looked into R.solution and noticed that the R files contain both SLL and MULH, however, even without any implementation for these 2 instructions the test passes. How can I make sure I have written the right code for these 2 instructions? Thanks.

Arrvindh Shriraman

unread,
Oct 8, 2020, 1:43:06 AM10/8/20
to cmpt-295-sfu
You can’t really; the tests are best effort
You need one test for each instruction or close to 50-60 tests
Reply all
Reply to author
Forward
0 new messages