Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-qtype_stack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-qtype_stack
Commits
2d6da110
Commit
2d6da110
authored
1 year ago
by
Edmund Farrow
Browse files
Options
Downloads
Patches
Plain Diff
default-test - Code tidy
parent
73a42cc2
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
questiontestrun.php
+1
-1
1 addition, 1 deletion
questiontestrun.php
stack/questiontest.php
+0
-1
0 additions, 1 deletion
stack/questiontest.php
with
1 addition
and
2 deletions
questiontestrun.php
+
1
−
1
View file @
2d6da110
...
@@ -202,7 +202,7 @@ if (empty($testscases) && $canedit) {
...
@@ -202,7 +202,7 @@ if (empty($testscases) && $canedit) {
echo
html_writer
::
end_tag
(
'form'
);
echo
html_writer
::
end_tag
(
'form'
);
}
}
if
(
empty
(
$testscases
)
&&
!
$defaulttest
)
{
if
(
empty
(
$testscases
))
{
$defaulttest
=
stack_bulk_tester
::
create_default_test
(
$question
);
$defaulttest
=
stack_bulk_tester
::
create_default_test
(
$question
);
$defaulttestresult
=
$defaulttest
->
test_question
(
$questionid
,
$seed
,
$context
);
$defaulttestresult
=
$defaulttest
->
test_question
(
$questionid
,
$seed
,
$context
);
echo
stack_string
(
'runquestiontests_explanation'
);
echo
stack_string
(
'runquestiontests_explanation'
);
...
...
This diff is collapsed.
Click to expand it.
stack/questiontest.php
+
0
−
1
View file @
2d6da110
...
@@ -99,7 +99,6 @@ class stack_question_test {
...
@@ -99,7 +99,6 @@ class stack_question_test {
$quba
->
process_action
(
$slot
,
$response
);
$quba
->
process_action
(
$slot
,
$response
);
$results
=
new
stack_question_test_result
(
$this
);
$results
=
new
stack_question_test_result
(
$this
);
$results
->
question
=
$question
;
$results
->
set_questionpenalty
(
$question
->
penalty
);
$results
->
set_questionpenalty
(
$question
->
penalty
);
foreach
(
$this
->
inputs
as
$inputname
=>
$notused
)
{
foreach
(
$this
->
inputs
as
$inputname
=>
$notused
)
{
// Check input still exits, could have been deleted in a question.
// Check input still exits, could have been deleted in a question.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment