You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

p1grading_result 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. ┏┓ ┏━╸┏━╸╻┏┓╻┏┓╻╻┏┓╻┏━╸ ┏┳┓┏━┓╺┳╸┏━┓╻╻ ╻ ╺┳╸┏━╸┏━┓╺┳╸
  2. ┣┻┓┣╸ ┃╺┓┃┃┗┫┃┗┫┃┃┗┫┃╺┓ ┃┃┃┣━┫ ┃ ┣┳┛┃┏╋┛ ┃ ┣╸ ┗━┓ ┃
  3. ┗━┛┗━╸┗━┛╹╹ ╹╹ ╹╹╹ ╹┗━┛ ╹ ╹╹ ╹ ╹ ╹┗╸╹╹ ╹ ╹ ┗━╸┗━┛ ╹
  4. Unit test 1: error messages
  5. # (running score = 0/0)
  6.  Passed: too many args to matrix dims (1/1)
  7.  Passed: no args to matrix add (1/1)
  8.  Passed: multiplying incompatible matrices (5/5)
  9.  Passed: adding incompatible matrices (4/4)
  10.  Passed: tranpose unreadable file (2/2)
  11.  Passed: get dims of nonexistent file (1/1)
  12.  Passed: matrix badcommand (1/1)
  13. Unit test 2: matrix dims tests
  14. # (running score = 15/15)
  15.  Passed: Stdin: ("99 68" == "99 68") (3/3)
  16.  Passed: Stdin: ("95 81" == "95 81") (3/3)
  17.  Passed: Stdin: ("99 99" == "99 99") (3/3)
  18.  Passed: File input: ("78 93" == "78 93") (3/3)
  19.  Passed: File input: ("69 80" == "69 80") (3/3)
  20.  Passed: File input: ("61 66" == "61 66") (3/3)
  21. Unit test 3: matrix transpose hardcoded test
  22. # (running score = 33/33)
  23.  Passed: m1 == T(m2) and T(m1) == m2 (10/10)
  24. Unit test 4: matrix transpose involution test
  25. # (running score = 43/43)
  26.  Passed: m1 == T(T(m1)) (5/5)
  27.  Passed: m2 == T(T(m2)) (5/5)
  28.  Passed: m3 == T(T(m3)) (5/5)
  29. Unit test 5: matrix mean test
  30. # (running score = 58/58)
  31.  Passed: zero matrix (2/2)
  32.  Passed: ones matrix (5/5)
  33.  Passed: identity matrix (5/5)
  34.  Passed: hardcoded matrix (15/15)
  35. Unit test 6: matrix add test
  36. # (running score = 85/85)
  37.  Passed: 0 + 0 == 0 (2/2)
  38.  Passed: X + 0 == X (5/5)
  39.  Passed: 0 + X == X (5/5)
  40.  Passed: A + B == B + A (1/1)
  41.  Passed: m1 + m2 == m3 (hardcoded matrix) (15/15)
  42. Unit test 7: matrix multiply test
  43. # (running score = 113/113)
  44.  Passed: I * M == M (5/5)
  45.  Passed: M * I == M (5/5)
  46.  Passed: 0 * M == 0 (5/5)
  47.  Passed: m3 == m1 * m2 (hardcoded matrix) (20/20)
  48. # Final grade: 148/148
  49. ┏┓ ┏━╸┏━╸╻┏┓╻┏┓╻╻┏┓╻┏━╸ ┏┳┓┏━┓╺┳╸┏━┓╻╻ ╻ ╺┳╸┏━╸┏━┓╺┳╸
  50. ┣┻┓┣╸ ┃╺┓┃┃┗┫┃┗┫┃┃┗┫┃╺┓ ┃┃┃┣━┫ ┃ ┣┳┛┃┏╋┛ ┃ ┣╸ ┗━┓ ┃
  51. ┗━┛┗━╸┗━┛╹╹ ╹╹ ╹╹╹ ╹┗━┛ ╹ ╹╹ ╹ ╹ ╹┗╸╹╹ ╹ ╹ ┗━╸┗━┛ ╹
  52. Unit test 1: error messages
  53. # (running score = 0/0)
  54.  Passed: too many args to matrix dims (1/1)
  55.  Passed: no args to matrix add (1/1)
  56.  Passed: multiplying incompatible matrices (5/5)
  57.  Passed: adding incompatible matrices (4/4)
  58.  Passed: tranpose unreadable file (2/2)
  59.  Passed: get dims of nonexistent file (1/1)
  60.  Passed: matrix badcommand (1/1)
  61. Unit test 2: matrix dims tests
  62. # (running score = 15/15)
  63.  Passed: Stdin: ("54 68" == "54 68") (3/3)
  64.  Passed: Stdin: ("84 71" == "84 71") (3/3)
  65.  Passed: Stdin: ("86 84" == "86 84") (3/3)
  66.  Passed: File input: ("78 95" == "78 95") (3/3)
  67.  Passed: File input: ("62 81" == "62 81") (3/3)
  68.  Passed: File input: ("77 69" == "77 69") (3/3)
  69. Unit test 3: matrix transpose hardcoded test
  70. # (running score = 33/33)
  71.  Passed: m1 == T(m2) and T(m1) == m2 (10/10)
  72. Unit test 4: matrix transpose involution test
  73. # (running score = 43/43)
  74.  Passed: m1 == T(T(m1)) (5/5)
  75.  Passed: m2 == T(T(m2)) (5/5)
  76.  Passed: m3 == T(T(m3)) (5/5)
  77. Unit test 5: matrix mean test
  78. # (running score = 58/58)
  79.  Passed: zero matrix (2/2)
  80.  Passed: ones matrix (5/5)
  81.  Passed: identity matrix (5/5)
  82.  Passed: hardcoded matrix (15/15)
  83. Unit test 6: matrix add test
  84. # (running score = 85/85)
  85.  Passed: 0 + 0 == 0 (2/2)
  86.  Passed: X + 0 == X (5/5)
  87.  Passed: 0 + X == X (5/5)
  88.  Passed: A + B == B + A (1/1)
  89.  Passed: m1 + m2 == m3 (hardcoded matrix) (15/15)
  90. Unit test 7: matrix multiply test
  91. # (running score = 113/113)
  92.  Passed: I * M == M (5/5)
  93.  Passed: M * I == M (5/5)
  94.  Passed: 0 * M == 0 (5/5)
  95.  Passed: m3 == m1 * m2 (hardcoded matrix) (20/20)
  96. # Final grade: 148/148
  97. ┏┓ ┏━╸┏━╸╻┏┓╻┏┓╻╻┏┓╻┏━╸ ┏┳┓┏━┓╺┳╸┏━┓╻╻ ╻ ╺┳╸┏━╸┏━┓╺┳╸
  98. ┣┻┓┣╸ ┃╺┓┃┃┗┫┃┗┫┃┃┗┫┃╺┓ ┃┃┃┣━┫ ┃ ┣┳┛┃┏╋┛ ┃ ┣╸ ┗━┓ ┃
  99. ┗━┛┗━╸┗━┛╹╹ ╹╹ ╹╹╹ ╹┗━┛ ╹ ╹╹ ╹ ╹ ╹┗╸╹╹ ╹ ╹ ┗━╸┗━┛ ╹
  100. Unit test 1: error messages
  101. # (running score = 0/0)
  102.  Passed: too many args to matrix dims (1/1)
  103.  Passed: no args to matrix add (1/1)
  104.  Passed: multiplying incompatible matrices (5/5)
  105.  Passed: adding incompatible matrices (4/4)
  106.  Passed: tranpose unreadable file (2/2)
  107.  Passed: get dims of nonexistent file (1/1)
  108.  Passed: matrix badcommand (1/1)
  109. Unit test 2: matrix dims tests
  110. # (running score = 15/15)
  111.  Passed: Stdin: ("100 78" == "100 78") (3/3)
  112.  Passed: Stdin: ("55 78" == "55 78") (3/3)
  113.  Passed: Stdin: ("96 70" == "96 70") (3/3)
  114.  Passed: File input: ("61 72" == "61 72") (3/3)
  115.  Passed: File input: ("74 61" == "74 61") (3/3)
  116.  Passed: File input: ("77 63" == "77 63") (3/3)
  117. Unit test 3: matrix transpose hardcoded test
  118. # (running score = 33/33)
  119.  Passed: m1 == T(m2) and T(m1) == m2 (10/10)
  120. Unit test 4: matrix transpose involution test
  121. # (running score = 43/43)
  122.  Passed: m1 == T(T(m1)) (5/5)
  123.  Passed: m2 == T(T(m2)) (5/5)
  124.  Passed: m3 == T(T(m3)) (5/5)
  125. Unit test 5: matrix mean test
  126. # (running score = 58/58)
  127.  Passed: zero matrix (2/2)
  128.  Passed: ones matrix (5/5)
  129.  Passed: identity matrix (5/5)
  130.  Passed: hardcoded matrix (15/15)
  131. Unit test 6: matrix add test
  132. # (running score = 85/85)
  133.  Passed: 0 + 0 == 0 (2/2)
  134.  Passed: X + 0 == X (5/5)
  135.  Passed: 0 + X == X (5/5)
  136.  Passed: A + B == B + A (1/1)
  137.  Passed: m1 + m2 == m3 (hardcoded matrix) (15/15)
  138. Unit test 7: matrix multiply test
  139. # (running score = 113/113)
  140.  Passed: I * M == M (5/5)
  141.  Passed: M * I == M (5/5)
  142.  Passed: 0 * M == 0 (5/5)
  143.  Passed: m3 == m1 * m2 (hardcoded matrix) (20/20)
  144. # Final grade: 148/148
  145.