Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions examples/04_python_static_analysis/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
// The first is to execute the student code, the second is to count the number of calls to the
// "print" function.
"command" : [ "python3 *.py",
"submitty_count token -l python Equal *.py",
"submitty_count token -l python Asterisk *.py",
"submitty_count token -l python Plus *.py" ],
// "submitty_count token -l python Equal *.py",
// "submitty_count token -l python Asterisk *.py",
// "submitty_count token -l python Plus *.py" ],
"submitty_count_ts -l python node = *.py",
"submitty_count_ts -l python node * *.py",
"submitty_count_ts -l python node + *.py" ],
"points" : 4,
"validation" : [
// First, ensure that the student received the correct answer.
Expand Down
6 changes: 4 additions & 2 deletions examples/06_loop_types/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"testcases" : [
{
"title" : "Python - Distinguish for and while Loops",
"command" : [ "submitty_count -l python node for *.py",
"submitty_count -l python token While *.py" ],
// "command" : [ "submitty_count -l python node for *.py",
// "submitty_count -l python token While *.py" ],
"command" : [ "submitty_count_ts -l python node for *.py",
"submitty_count_ts -l python node While *.py" ],
"points" : 2,
"validation" : [
{
Expand Down
41 changes: 23 additions & 18 deletions examples/07_loop_depth/config/config.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,32 @@
// FIXME: In the process of deprecating submitty_count and replacing it with submitty_count_ts, the loop depth functionality
// was lost. This example should either be updated or removed.
{
"testcases" : [
{
"title" : "Python - Determine Loop Depth",
]
// {
// "title" : "Python - Determine Loop Depth",

// Here, an instructor-provided static analysis script is used, rather
// than one of the provided scripts like count_token and count_function.
// This works in much the same way as those scripts.
"command" : [ "submitty_count -l python depth loop *.py" ],
"points" : 10,
"validation" : [
{
"method" : "intComparison",
"actual_file" : "STDOUT.txt",
"description" : "Loop Depth",
// "command" : [ "submitty_count -l python depth loop *.py" ],
// ""
// "command" : [ "submitty_count_ts -l python call print *.py" ],
// "points" : 10,
// "validation" : [
// {
// "method" : "intComparison",
// "actual_file" : "STDOUT.txt",
// "description" : "Loop Depth",

"comparison" : "le",
"term" : 3,
// "comparison" : "ge",
// "term" : 0,

"failure_message" : "Must have less than four nested loops",
"show_message" : "always",
"show_actual" : "always"
}
]
}
]
// // "failure_message" : "Must have less than four nested loops",
// // "show_message" : "always",
// "show_actual" : "always"
// }
// ]
// }
// ]
}
Loading