瀏覽代碼

More details for a TODO

rexim 3 年之前
父節點
當前提交
923cd52500
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      test.c

+ 1 - 0
test.c

@@ -88,6 +88,7 @@ bool replay_test_case(const char *program_path, const char *file_path, const cha
         }
         }
 
 
         // TODO: it would be cool if "unexpected image size" error would generate the image diff as well
         // TODO: it would be cool if "unexpected image size" error would generate the image diff as well
+        // The size of the image diff should be max(expected_width, actual_width) by max(expected_height, actual_height) with the paddings on the right and bottom edges filled with ERROR_COLOR
         if (expected_width != WIDTH || expected_height != HEIGHT) {
         if (expected_width != WIDTH || expected_height != HEIGHT) {
             fprintf(stderr, "%s: TEST FAILURE: unexpected image size. Expected %dx%d, but got %dx%d\n",
             fprintf(stderr, "%s: TEST FAILURE: unexpected image size. Expected %dx%d, but got %dx%d\n",
                     file_path, expected_width, expected_height, WIDTH, HEIGHT);
                     file_path, expected_width, expected_height, WIDTH, HEIGHT);