You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log(`Output for Test Case ${testCaseIndex}:\n${result.trim()}`);
171
-
vscode.window.showInformationMessage(`Output for Test Case ${testCaseIndex}:\n${result.trim()}`,{modal: true});
178
+
console.log(`Output for Test Case ${testCaseIndex}:\nExpected Output: ${expectedOutputPath}\nActual Output: ${result ? result.trim() : 'N/A'}`);
179
+
vscode.window.showInformationMessage(`Output for Test Case ${testCaseIndex}:\nExpected Output: ${expectedOutputPath}\nActual Output: ${result ? result.trim() : 'N/A'}`,{modal: true});
@@ -105,23 +102,38 @@ export function activate(context: vscode.ExtensionContext) {
105
102
}
106
103
107
104
constboilerplate=language==='python'
108
-
? `import os; run_test_case=lambda n,f: print((lambda p: (lambda a: f(*a))(eval(l.strip()) for l in open(p).read().strip().splitlines()) if os.path.isfile(p) else f"Error: File not found at {p}. Check the file path and try again.")((lambda d: os.path.join(d, 'test_cases', f"input_{n}.txt"))(os.path.dirname(os.path.dirname(file)))))
0 commit comments