Skip to content

Commit bc317c2

Browse files
committed
Merge branch 'master' of github.com:Submitty/Tutorial
2 parents 36c77e2 + 297eea6 commit bc317c2

File tree

6 files changed

+17
-15
lines changed

6 files changed

+17
-15
lines changed

examples/04_python_static_analysis/config/config.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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" : [
@@ -13,9 +14,9 @@
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.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
volume = 5 * 16.5 * 12.5
22
area = 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)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
volume = 5 * 16.5 * 12.5
22
area = 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)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
volume = 5 * 16.5 * 12.5
22
area = 722.5
3-
print 'volume =', volume
4-
print 'area =', area
3+
print('volume =', volume)
4+
print('area =', area)

examples/04_python_static_analysis/submissions/solution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
height = 12.5
44
volume = length * width * height
55
area = 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)

examples/05_cpp_static_analysis/config/config.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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.
@@ -12,8 +13,8 @@
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
{

0 commit comments

Comments
 (0)