Test-Generation

所属分类:自动编程
开发工具:C++
文件大小:5KB
下载次数:0
上传日期:2019-01-03 12:59:30
上 传 者sh-1993
说明:  用于自动化编程挑战的测试生成的脚本和代码。
(Scripts and codes to automate test generation for programming challenges.)

文件列表:
graph (0, 2019-01-03)
graph\testscript.sh (110, 2019-01-03)
graph\undirected_connected_graph.cpp (3012, 2019-01-03)
produce_output_files (0, 2019-01-03)
produce_output_files\compilescript.sh (375, 2019-01-03)
tree (0, 2019-01-03)
tree\testfile.cpp (3026, 2019-01-03)
tree\testscript.sh (91, 2019-01-03)

To run the script, open terminal and type "bash testscript.sh". Make sure testfile.cpp and testscript.sh are in the same directory. This will create an "input" folder in the same directory which will contain the input files. You can change the constraints in the testfile.cpp to generate your own testcases. You may change MAX to change the maximum number of nodes that can exist in any testcase, currently set to 100005. You may change the time seed which is currently set to 0. You may change the number of testcases which is currently set to 5. According to number of testcases you can change the value of number of nodes for each testfile in the nodes[] array. Also, there are two ways of printing the edge list of a tree you can use the either one by commenting out the other.

近期下载者

相关文件


收藏者