This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
haas:fall2016:data:projects:dsi0 [2016/08/21 23:08] – wedge | haas:fall2016:data:projects:dsi0 [2016/08/27 18:10] (current) – [Verify Your Program] wedge | ||
---|---|---|---|
Line 13: | Line 13: | ||
* __revision 1__: added some additional output specifications that need to be followed. There will probably be more as time goes by, so keep checking for updates (20160813) | * __revision 1__: added some additional output specifications that need to be followed. There will probably be more as time goes by, so keep checking for updates (20160813) | ||
* __revision 2__: nice to see people already getting started; I've had a few questions about project specifications I've clarified below, namely: your display function(s), | * __revision 2__: nice to see people already getting started; I've had a few questions about project specifications I've clarified below, namely: your display function(s), | ||
- | * __revision 3__: clarification- all prompts should display to STDERR. Only produced output (such as displaying or showing the obtained value) should go to STDOUT. | + | * __revision 3__: clarification- all prompts should display to STDERR. Only produced output (such as displaying or showing the obtained value) should go to STDOUT |
+ | * __revision 4__: added the " | ||
=====Objective===== | =====Objective===== | ||
In this project, we get started with some course initialization and review activities. | In this project, we get started with some course initialization and review activities. | ||
Line 304: | Line 304: | ||
* structs | * structs | ||
* pointers | * pointers | ||
+ | |||
+ | |||
+ | =====Verify Your Program===== | ||
+ | When your program is functional, you can test it for correctness by using the **projeval** tool on lab46. A series of tests will be run, and you will be able to see if you program is in spec (SUCCESS) or out of spec (MISMATCH). | ||
+ | |||
+ | An example of a fully compliant test run follows: | ||
+ | |||
+ | <cli> | ||
+ | lab46: | ||
+ | [projeval] Evaluating dsi0 for username | ||
+ | [test 0] display 4 element populated list forward ... | ||
+ | you have: [0] 2 -> [1] 4 -> [2] 6 -> [3] 8 -> [4] -1 | ||
+ | should be: [0] 2 -> [1] 4 -> [2] 6 -> [3] 8 -> [4] -1 | ||
+ | | ||
+ | |||
+ | [test 1] inserting into empty list ... | ||
+ | you have: [0] 7 -> [1] -1 | ||
+ | should be: [0] 7 -> [1] -1 | ||
+ | | ||
+ | |||
+ | [test 2] appending into empty list ... | ||
+ | you have: [0] 7 -> [1] -1 | ||
+ | should be: [0] 7 -> [1] -1 | ||
+ | | ||
+ | |||
+ | [test 3] obtaining from 1 entry list ... | ||
+ | you have: The value you obtained is: 7 | ||
+ | should be: The value you obtained is: 7 | ||
+ | | ||
+ | |||
+ | [test 4] obtaining first entry from 2 entry list ... | ||
+ | you have: The value you obtained is: 7 | ||
+ | should be: The value you obtained is: 7 | ||
+ | | ||
+ | |||
+ | [test 5] obtaining second entry from 2 entry list ... | ||
+ | you have: The value you obtained is: 8 | ||
+ | should be: The value you obtained is: 8 | ||
+ | | ||
+ | |||
+ | [test 6] inserting before first entry in list ... | ||
+ | you have: [0] 6 -> [1] 7 -> [2] -1 | ||
+ | should be: [0] 6 -> [1] 7 -> [2] -1 | ||
+ | | ||
+ | |||
+ | [test 7] inserting before second entry in list ... | ||
+ | you have: [0] 7 -> [1] 8 -> [2] 9 -> [3] -1 | ||
+ | should be: [0] 7 -> [1] 8 -> [2] 9 -> [3] -1 | ||
+ | | ||
+ | |||
+ | [test 8] appending after last entry in list ... | ||
+ | you have: [0] 7 -> [1] 8 -> [2] 9 -> [3] -1 | ||
+ | should be: [0] 7 -> [1] 8 -> [2] 9 -> [3] -1 | ||
+ | | ||
+ | |||
+ | [test 9] appending after second to last entry in list ... | ||
+ | you have: [0] 7 -> [1] 8 -> [2] 9 -> [3] -1 | ||
+ | should be: [0] 7 -> [1] 8 -> [2] 9 -> [3] -1 | ||
+ | | ||
+ | |||
+ | [test 10] clearing list then appending ... | ||
+ | you have: [0] 7 -> [1] -1 | ||
+ | should be: [0] 7 -> [1] -1 | ||
+ | | ||
+ | |||
+ | [test 11] obtaining second entry from 2 entry list (check list integrity) ... | ||
+ | you have: [0] 7 -> [1] -1 | ||
+ | should be: [0] 7 -> [1] -1 | ||
+ | | ||
+ | |||
+ | [test 12] obtaining first entry from 2 entry list (checking list integrity) ... | ||
+ | you have: [0] 8 -> [1] -1 | ||
+ | should be: [0] 8 -> [1] -1 | ||
+ | | ||
+ | |||
+ | [test 13] obtaining from 1 entry list (checking list integrity) ... | ||
+ | you have: [0] -1 | ||
+ | should be: [0] -1 | ||
+ | | ||
+ | |||
+ | lab46: | ||
+ | </ | ||
=====Submission Criteria===== | =====Submission Criteria===== |