File tree Expand file tree Collapse file tree 6 files changed +17
-15
lines changed
04_python_static_analysis
05_cpp_static_analysis/config Expand file tree Collapse file tree 6 files changed +17
-15
lines changed Original file line number Diff line number Diff line change 22 "resource_limits" : {
33 "RLIMIT_CPU" : 60 ,
44 "RLIMIT_NPROC" : 100 ,
5- "RLIMIT_AS" : " RLIM_INFINITY"
5+ "RLIMIT_AS" : " RLIM_INFINITY" ,
6+ "RLIMIT_SIGPENDING" : 100
67 },
78
89 "testcases" : [
1314 // The first is to execute the student code, the second is to count the number of calls to the
1415 // "print" function.
1516 "command" : [ " python *.py" ,
16- " submitty_count_node -l python2 assign *.py" ,
17- " submitty_count_node -l python2 mul *.py" ,
18- " submitty_count_node -l python2 add *.py" ],
17+ " submitty_count token -l python Equal *.py" ,
18+ " submitty_count token -l python Asterisk *.py" ,
19+ " submitty_count token -l python Plus *.py" ],
1920 "points" : 4 ,
2021 "validation" : [
2122 // First, ensure that the student received the correct answer.
Original file line number Diff line number Diff line change 11volume = 5 * 16.5 * 12.5
22area = 2 * 5 * 16.5 + 2 * 5 * 12.5 + 2 * 16.5 * 12.5
3- print 'volume =' , volume
4- print 'area =' , area
3+ print ( 'volume =' , volume )
4+ print ( 'area =' , area )
Original file line number Diff line number Diff line change 11volume = 5 * 16.5 * 12.5
22area = 10 * 16.5 + 10 * 12.5 + 2 * 16.5 * 12.5
3- print 'volume =' , volume
4- print 'area =' , area
3+ print ( 'volume =' , volume )
4+ print ( 'area =' , area )
Original file line number Diff line number Diff line change 11volume = 5 * 16.5 * 12.5
22area = 722.5
3- print 'volume =' , volume
4- print 'area =' , area
3+ print ( 'volume =' , volume )
4+ print ( 'area =' , area )
Original file line number Diff line number Diff line change 33height = 12.5
44volume = length * width * height
55area = 2 * length * width + 2 * length * height + 2 * width * height
6- print 'volume =' , volume
7- print 'area =' , area
6+ print ( 'volume =' , volume )
7+ print ( 'area =' , area )
Original file line number Diff line number Diff line change 22 "resource_limits" : {
33 "RLIMIT_CPU" : 60 ,
44 "RLIMIT_NPROC" : 100 ,
5- "RLIMIT_AS" : " RLIM_INFINITY"
5+ "RLIMIT_AS" : " RLIM_INFINITY" ,
6+ "RLIMIT_SIGPENDING" : 100
67 },
78
89 // Static analysis can also be performed upon C++ code.
1213 {
1314
1415 "title" : " Check for goto and auto" ,
15- "command" : [ " submitty_count_token -l c goto *.cpp" ,
16- " submitty_count_token -l c auto *.cpp" ],
16+ "command" : [ " submitty_count token -l c Goto *.cpp" ,
17+ " submitty_count token -l c Auto *.cpp" ],
1718 "points" : 2 ,
1819 "validation" : [
1920 {
You can’t perform that action at this time.
0 commit comments