|
| 1 | +{ |
| 2 | + "description": "학습 출력 비교 계약 벡터. Python(src/codaro/curriculum/outputMatch.py)과 TS(editor/src/lib/learningOutputMatch.ts)가 같은 결과를 내야 한다.", |
| 3 | + "schemaVersion": 1, |
| 4 | + "vectors": [ |
| 5 | + { |
| 6 | + "id": "exact-plain", |
| 7 | + "expected": "Hello Codaro", |
| 8 | + "actual": "Hello Codaro", |
| 9 | + "caseInsensitive": false, |
| 10 | + "passed": true, |
| 11 | + "tier": "exact" |
| 12 | + }, |
| 13 | + { |
| 14 | + "id": "trailing-space-forgiven", |
| 15 | + "expected": "Hello Codaro", |
| 16 | + "actual": "Hello Codaro ", |
| 17 | + "caseInsensitive": false, |
| 18 | + "passed": true, |
| 19 | + "tier": "exact" |
| 20 | + }, |
| 21 | + { |
| 22 | + "id": "final-newline-forgiven", |
| 23 | + "expected": "합계 100", |
| 24 | + "actual": "합계 100\n\n", |
| 25 | + "caseInsensitive": false, |
| 26 | + "passed": true, |
| 27 | + "tier": "exact" |
| 28 | + }, |
| 29 | + { |
| 30 | + "id": "crlf-forgiven", |
| 31 | + "expected": "a\nb", |
| 32 | + "actual": "a\r\nb\r\n", |
| 33 | + "caseInsensitive": false, |
| 34 | + "passed": true, |
| 35 | + "tier": "exact" |
| 36 | + }, |
| 37 | + { |
| 38 | + "id": "per-line-trailing-space-forgiven", |
| 39 | + "expected": "카멜케이스 : Codaro User\n스네이크케이스 : Codaro Learner", |
| 40 | + "actual": "카멜케이스 : Codaro User \n스네이크케이스 : Codaro Learner ", |
| 41 | + "caseInsensitive": false, |
| 42 | + "passed": true, |
| 43 | + "tier": "exact" |
| 44 | + }, |
| 45 | + { |
| 46 | + "id": "leading-blank-lines-forgiven", |
| 47 | + "expected": "결과", |
| 48 | + "actual": "\n\n결과", |
| 49 | + "caseInsensitive": false, |
| 50 | + "passed": true, |
| 51 | + "tier": "exact" |
| 52 | + }, |
| 53 | + { |
| 54 | + "id": "case-diff-fails-with-note", |
| 55 | + "expected": "Hello Codaro", |
| 56 | + "actual": "hello codaro", |
| 57 | + "caseInsensitive": false, |
| 58 | + "passed": false, |
| 59 | + "tier": "caseOnly" |
| 60 | + }, |
| 61 | + { |
| 62 | + "id": "case-diff-passes-when-opted-in", |
| 63 | + "expected": "Hello Codaro", |
| 64 | + "actual": "hello codaro", |
| 65 | + "caseInsensitive": true, |
| 66 | + "passed": true, |
| 67 | + "tier": "caseInsensitive" |
| 68 | + }, |
| 69 | + { |
| 70 | + "id": "internal-double-space-fails-as-whitespace", |
| 71 | + "expected": "합계 : 100", |
| 72 | + "actual": "합계 : 100", |
| 73 | + "caseInsensitive": false, |
| 74 | + "passed": false, |
| 75 | + "tier": "whitespaceOnly" |
| 76 | + }, |
| 77 | + { |
| 78 | + "id": "line-structure-fails-as-whitespace", |
| 79 | + "expected": "a b", |
| 80 | + "actual": "a\nb", |
| 81 | + "caseInsensitive": false, |
| 82 | + "passed": false, |
| 83 | + "tier": "whitespaceOnly" |
| 84 | + }, |
| 85 | + { |
| 86 | + "id": "case-and-space-fails-as-whitespace", |
| 87 | + "expected": "Total : 100", |
| 88 | + "actual": "total : 100", |
| 89 | + "caseInsensitive": false, |
| 90 | + "passed": false, |
| 91 | + "tier": "whitespaceOnly" |
| 92 | + }, |
| 93 | + { |
| 94 | + "id": "real-difference", |
| 95 | + "expected": "합계 100", |
| 96 | + "actual": "합계 90", |
| 97 | + "caseInsensitive": false, |
| 98 | + "passed": false, |
| 99 | + "tier": "different" |
| 100 | + }, |
| 101 | + { |
| 102 | + "id": "empty-output", |
| 103 | + "expected": "안녕하세요", |
| 104 | + "actual": "", |
| 105 | + "caseInsensitive": false, |
| 106 | + "passed": false, |
| 107 | + "tier": "different" |
| 108 | + }, |
| 109 | + { |
| 110 | + "id": "second-line-difference", |
| 111 | + "expected": "1일차\n2일차\n3일차", |
| 112 | + "actual": "1일차\n둘째날\n3일차", |
| 113 | + "caseInsensitive": false, |
| 114 | + "passed": false, |
| 115 | + "tier": "different" |
| 116 | + }, |
| 117 | + { |
| 118 | + "id": "missing-line", |
| 119 | + "expected": "a\nb\nc", |
| 120 | + "actual": "a\nb", |
| 121 | + "caseInsensitive": false, |
| 122 | + "passed": false, |
| 123 | + "tier": "different" |
| 124 | + }, |
| 125 | + { |
| 126 | + "id": "case-insensitive-does-not-mask-real-difference", |
| 127 | + "expected": "HELLO", |
| 128 | + "actual": "GOODBYE", |
| 129 | + "caseInsensitive": true, |
| 130 | + "passed": false, |
| 131 | + "tier": "different" |
| 132 | + } |
| 133 | + ] |
| 134 | +} |
0 commit comments