Skip to content

Commit

Permalink
Merge pull request #166 from uta8a/fix-add-testcases-script
Browse files Browse the repository at this point in the history
Fix filename in scripts/add_test_cases.py
  • Loading branch information
kmyk authored Aug 6, 2021
2 parents 64ace1d + 4c8d912 commit 5cea52b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/add_test_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def main() -> None:
# collect files
for i, testcase in enumerate(data['result']['tests']):
plan[examples_dir / 'data' / '{}.sample-{}.in'.format(name, i + 1)] = testcase['input'].encode()
plan[examples_dir / 'data' / '{}.sample-{}.in'.format(name, i + 1)] = testcase['output'].encode()
plan[examples_dir / 'data' / '{}.sample-{}.out'.format(name, i + 1)] = testcase['output'].encode()
if not args.only_sample_cases:
plan[examples_dir / '{}.py'.format(name)] = subprocess.check_output(['oj-template', '-t', 'main.py', args.url])
plan[examples_dir / 'data' / '{}.solver.cpp'.format(name)] = subprocess.check_output(['oj-template', '-t', 'main.cpp', args.url])
Expand Down

0 comments on commit 5cea52b

Please sign in to comment.