{"id":16930236,"url":"https://github.com/erfaniaa/testsaz","last_synced_at":"2025-04-11T15:31:49.502Z","repository":{"id":81362083,"uuid":"230440883","full_name":"Erfaniaa/testsaz","owner":"Erfaniaa","description":"Testsaz is a fast, minimal test-case generator system for ICPC style and IOI style problems.","archived":false,"fork":false,"pushed_at":"2020-07-07T12:41:33.000Z","size":61,"stargazers_count":22,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T15:33:53.663Z","etag":null,"topics":["acm-icpc","algorithms","codechef","codeforces","data-structures","icpc","ioi","test-generation","test-generator","testgenerator"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Erfaniaa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-27T12:34:40.000Z","updated_at":"2023-12-01T17:58:11.000Z","dependencies_parsed_at":"2023-07-11T10:36:21.396Z","dependency_job_id":null,"html_url":"https://github.com/Erfaniaa/testsaz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erfaniaa%2Ftestsaz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erfaniaa%2Ftestsaz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erfaniaa%2Ftestsaz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erfaniaa%2Ftestsaz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Erfaniaa","download_url":"https://codeload.github.com/Erfaniaa/testsaz/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248431557,"owners_count":21102218,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["acm-icpc","algorithms","codechef","codeforces","data-structures","icpc","ioi","test-generation","test-generator","testgenerator"],"created_at":"2024-10-13T20:41:13.208Z","updated_at":"2025-04-11T15:31:49.183Z","avatar_url":"https://github.com/Erfaniaa.png","language":"C++","readme":"# Testsaz\n\nTestsaz (\"تست‌ساز\" in Persian) is a fast, minimal test-case generator system for ICPC style and IOI style problems.\n\nIt can be helpful when you're preparing some problems for algorithmic contests and Algorithm Design and Data Structures courses.\n\n##  Usage\n\n### Initialization\n\n1. Clone this repository.\n2. ```chmod +x *.sh```\n\n### Problem preparation\n\n1. Modify these files according to your problem:\n   - *solution.cpp*: the main solution to your problem\n   - *generator.cpp*: input files generator\n   - *generator_input.txt*: line-separated data which is going to be passed to the generator\n\n2. ```./input_maker.sh```\n\n   Now, there are some input files in the *tests* directory.\n3. ```./output_maker.sh```\n\n   Now, there are some output files in the *tests* directory.\n\n## Logs\n\n- ```./input_maker.sh``` command prints a report which shows running time and exit code of the generator:\n\n  ```\n  Generating input files...\n\n  start #0\n  time: 0:00.00\n  exit code: 0\n  end #0\n\n  start #1\n  time: 0:00.00\n  exit code: 0\n  end #1\n\n  start #2\n  time: 0:00.00\n  exit code: 0\n  end #2\n\n  ...\n  ```\n\n\n- ```./output_maker.sh``` command prints a report which shows running time and exit code of the solution:\n\n  ```\n  Generating output files...\n\n  start #0\n  time: 0:00.00\n  exit code: 0\n  end #0\n\n  start #1\n  time: 0:00.00\n  exit code: 0\n  end #1\n\n  start #2\n  time: 0:00.00\n  exit code: 0\n  end #2\n\n  ...\n  ```\n\n## Sample\n\nA simple problem with 15 tests is already prepared in this repository.\n\nThese files are modified according to the *A+B problem*:\n\n- *solution.cpp*: It reads two integers from the input, and it prints their sum.\n- *generator.cpp*: It generates two random integers in a specific range.\n- *generator_input.txt*: It contains the specified ranges for the generator.\n\n## Notes\n\n- As it is seen in the sample, a random seed can be passed to the generator.\n- The total number of lines in *generator_input.txt* file matters. It determines the total number of input files.\n- The last line of *generator_input.txt* file should be empty.\n\n## See also\n\n- [testlib](https://github.com/MikeMirzayanov/testlib)\n- [tps](https://github.com/ioi-2017/tps)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferfaniaa%2Ftestsaz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferfaniaa%2Ftestsaz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferfaniaa%2Ftestsaz/lists"}