Skip to content

Commit

Permalink
Teacher tool: add validator plans for checking a draggable parameter …
Browse files Browse the repository at this point in the history
…was accessed (#9896)

* Add validator plans for parameter access

* Simplify text
  • Loading branch information
thsparks authored Mar 1, 2024
1 parent 4227d64 commit 1004f9d
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions common-docs/teachertool/validator-plans-shared.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,62 @@
}
]
},
{
".desc": "A parameter's value is used",
"name": "parameter_variable_accessed",
"threshold": 1,
"checks": [
{
"validator": "blocksExist",
"blockCounts": {
"argument_reporter_string": 1
}
},
{
"validator": "blocksExist",
"blockCounts": {
"argument_reporter_number": 1
}
},
{
"validator": "blocksExist",
"blockCounts": {
"argument_reporter_boolean": 1
}
},
{
"validator": "blocksExist",
"blockCounts": {
"argument_reporter_array": 1
}
},
{
"validator": "blocksExist",
"blockCounts": {
"argument_reporter_custom": 1
}
},
{
"validator": "blocksExist",
"blockCounts": {
"variables_get_reporter": 1
}
}
]
},
{
".desc": "A numeric parameter's value is used",
"name": "numeric_parameter_variable_accessed",
"threshold": 1,
"checks": [
{
"validator": "blocksExist",
"blockCounts": {
"argument_reporter_number": 1
}
}
]
},
{
".desc": "A custom variable's value is set to a random number",
"name": "variable_set_random",
Expand Down

0 comments on commit 1004f9d

Please sign in to comment.