Guest User

Untitled

a guest
Dec 9th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 4.31 KB | None | 0 0
  1.     #1, test the 'undefined when there is no game has been completed  
  2.      
  3.     >(simple-simon 3)  
  4.     '(green blue red)  
  5.     >(score)  
  6.     'undefined  
  7.     **************************************************************************************************  
  8.     #2, call the score in the middle of the game  
  9.      
  10.     >(simple-simon 3)  
  11.     '(green blue red)  
  12.     >(press 'green)  
  13.     'ok  
  14.     >(score)  
  15.     'undefined  
  16.     *************************************************************************************************  
  17.     #3 test the score with the result of the game is 'lose  
  18.      
  19.     >(simple-simon 3)  
  20.     '(green red blue)  
  21.     >(press red)  
  22.     'lose  
  23.     >(score)  
  24.     -3  
  25.     ******************************************************************************************************  
  26.     #4 test the score with the result of the game is 'win  
  27.      
  28.     >(simple-simon 3)  
  29.     '(green blue red)  
  30.     >(press green)  
  31.     'ok  
  32.     >(press blue)  
  33.     'ok  
  34.     >(press red)  
  35.     'win  
  36.     >(score)  
  37.     3  
  38.      
  39.     ***************************************************************************************************  
  40.     #5 test the score in the middle of a new game.  
  41.      
  42.     >(simple-simon 2)  
  43.     '(blue red)  
  44.     >(press 'green)  
  45.     'lose  
  46.     >(simple-simon 3)  
  47.     '(red red red)  
  48.     >(press 'red)  
  49.     'ok  
  50.     >(score)  
  51.     -2  
  52.      
  53.     ***********************************************************************************************  
  54.     #6 test the scores for different completed games  
  55.      
  56.     >(simple-simon 2)  
  57.     '(red red)  
  58.     >(press 'green)  
  59.     'lose  
  60.     >(score)  
  61.     -2  
  62.     >(simple-simon 2)  
  63.     '(red blue)  
  64.     >(press 'red)  
  65.     'ok  
  66.     >(press 'blue)  
  67.     'win  
  68.     >(score)  
  69.     2  
  70.     ********************************************************************************************************  
  71.     #7 test the score which is in a uncompleted game,but there is a game has been played.  
  72.      
  73.     >(simple-simon 2)  
  74.     '(red blue)  
  75.     >(press 'red)  
  76.     'ok  
  77.     >(press 'blue)  
  78.     'win  
  79.     >(simple-simon 2)  
  80.     '(red yellow)  
  81.     >(score)  
  82.     2  
  83.      
  84.     *********************************************************************************************************  
  85.     #8 test the scores which are in different cinditions  
  86.      
  87.     >(score)  
  88.     'undefined  
  89.      
  90.     >(simple-simon 5)  
  91.     '(red blue green yellow red)  
  92.     >(press 'blue)  
  93.     'lose  
  94.     >(score)  
  95.     -5  
  96.     *********************************************************************************************************  
  97.     #9 test the scores in a single game  
  98.     >(simple-simon 3)  
  99.     '(red green blue)  
  100.     >(press 'red)  
  101.     'ok  
  102.     >(score)  
  103.     'undefined  
  104.     >(press 'green)  
  105.     'ok  
  106.     >(score)  
  107.     'undefined  
  108.     >(press 'blue)  
  109.     'win  
  110.     >(score)  
  111.     3  
  112.     ***************************************************************************************************************  
  113.     #10 test the different scores in different games  
  114.      
  115.     >(score)  
  116.     'undefined  
  117.     >(simple-simon 3)  
  118.     '(red green yellow)  
  119.     >(press 'green)  
  120.     'lose  
  121.     >(score)  
  122.     -3  
  123.     >(score)  
  124.     -3  
  125.     >(simple-simon 2)  
  126.     '(red red)  
  127.     >(score)  
  128.     -3  
  129.     >(press 'red)  
  130.     'ok  
  131.     >(score)  
  132.     -3  
  133.     >(press 'red)  
  134.     'win  
  135.     >(score)  
  136.     1  
  137.  
  138.     Marks
  139.     Summary
  140.     Submission Rule
  141.  
  142.     +  
  143.     Pencil_delete
  144.     # of Test Cases
  145.     4.0: Excellent  Submission has 10 test cases.
  146.     +  
  147.     Pencil_delete
  148.     Correctness of Cases
  149.     4.0: Excellent  10 test cases are correct.
  150.     +  
  151.     Pencil_delete
  152.     Formatting
  153.     4.0: Excellent  10 test cases are formatted correctly.
  154.     +  
  155.     Pencil_delete
  156.     # of Wins/Losses
  157.     4.0: Excellent  More than one test case is a win and more than one test case is a loss.
  158.     +  
  159.     Pencil_delete
  160.     Score Check
  161.     4.0: Excellent  Score is checked in every test case.
  162.     +  
  163.     Pencil_delete
  164.     Initial Score Check
  165.     4.0: Excellent  Initial score of 'undefined tested at least once.
  166.     +  
  167.     Pencil_delete
  168.     Descriptors
  169.     3.0: Good  Descriptors are present and helpful for more than 5 test cases, but not all.
Add Comment
Please, Sign In to add comment