Skip to content

Commit

Permalink
Merge pull request #473 from dodona-edu/enhance/better-custom-check-f…
Browse files Browse the repository at this point in the history
…unctions

Pass objects to custom oracles
  • Loading branch information
niknetniko committed Nov 29, 2023
2 parents 43dcc37 + f48fada commit d71fbdf
Show file tree
Hide file tree
Showing 35 changed files with 244 additions and 1,005 deletions.
10 changes: 0 additions & 10 deletions tested/dsl/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@
{
"required" : [
"oracle",
"language",
"file"
],
"properties" : {
Expand All @@ -360,10 +359,6 @@
"custom_check"
]
},
"language" : {
"type" : "string",
"description" : "The programming language of the custom check function."
},
"file" : {
"type" : "string",
"description" : "The path to the file containing the custom check function."
Expand Down Expand Up @@ -415,7 +410,6 @@
{
"required" : [
"oracle",
"language",
"file"
],
"properties" : {
Expand All @@ -425,10 +419,6 @@
"custom_check"
]
},
"language" : {
"type" : "string",
"description" : "The programming language of the custom check function."
},
"file" : {
"type" : "string",
"description" : "The path to the file containing the custom check function."
Expand Down
10 changes: 0 additions & 10 deletions tested/dsl/schema_draft7.json
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,6 @@
{
"required" : [
"oracle",
"language",
"file"
],
"properties" : {
Expand All @@ -355,10 +354,6 @@
"custom_check"
]
},
"language" : {
"type" : "string",
"description" : "The programming language of the custom check function."
},
"file" : {
"type" : "string",
"description" : "The path to the file containing the custom check function."
Expand Down Expand Up @@ -409,7 +404,6 @@
{
"required" : [
"oracle",
"language",
"file"
],
"properties" : {
Expand All @@ -419,10 +413,6 @@
"custom_check"
]
},
"language" : {
"type" : "string",
"description" : "The programming language of the custom check function."
},
"file" : {
"type" : "string",
"description" : "The path to the file containing the custom check function."
Expand Down
1 change: 0 additions & 1 deletion tested/dsl/translate_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,6 @@ def _convert_custom_check_oracle(stream: dict) -> CustomCheckOracle:
assert isinstance(cv, Value)
converted_args.append(cv)
return CustomCheckOracle(
language=stream["language"],
function=EvaluationFunction(
file=stream["file"], name=stream.get("name", "evaluate")
),
Expand Down
273 changes: 0 additions & 273 deletions tested/judge/programmed.py

This file was deleted.

Loading

0 comments on commit d71fbdf

Please sign in to comment.