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
e8b58633
Commit
e8b58633
authored
8 years ago
by
Chris Sangwin
Browse files
Options
Downloads
Patches
Plain Diff
Further minor changes. New test cases.
parent
04372163
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
equivdemo.php
+1
-1
1 addition, 1 deletion
equivdemo.php
question.php
+2
-2
2 additions, 2 deletions
question.php
settings.php
+5
-0
5 additions, 0 deletions
settings.php
tests/fixtures/equivfixtures.class.php
+9
-1
9 additions, 1 deletion
tests/fixtures/equivfixtures.class.php
with
17 additions
and
4 deletions
equivdemo.php
+
1
−
1
View file @
e8b58633
...
@@ -81,7 +81,7 @@ $options->set_option('simplify', false);
...
@@ -81,7 +81,7 @@ $options->set_option('simplify', false);
$casstrings
=
array
();
$casstrings
=
array
();
$i
=
0
;
$i
=
0
;
$debug
=
tru
e
;
$debug
=
fals
e
;
/* Just consider the last in the array. */
/* Just consider the last in the array. */
$sa
=
array_reverse
(
$samplearguments
);
$sa
=
array_reverse
(
$samplearguments
);
$samplearguments2
=
array
(
$sa
[
0
]);
$samplearguments2
=
array
(
$sa
[
0
]);
...
...
This diff is collapsed.
Click to expand it.
question.php
+
2
−
2
View file @
e8b58633
This diff is collapsed.
Click to expand it.
settings.php
+
5
−
0
View file @
e8b58633
...
@@ -26,6 +26,11 @@ defined('MOODLE_INTERNAL') || die();
...
@@ -26,6 +26,11 @@ defined('MOODLE_INTERNAL') || die();
require_once
(
__DIR__
.
'/settingslib.php'
);
require_once
(
__DIR__
.
'/settingslib.php'
);
require_once
(
__DIR__
.
'/stack/options.class.php'
);
require_once
(
__DIR__
.
'/stack/options.class.php'
);
if
(
defined
(
'MINIMAL_API'
))
{
require_once
(
__DIR__
.
'/apilib.php'
);
}
else
{
require_once
(
__DIR__
.
'/locallib.php'
);
}
// Useful links.
// Useful links.
...
...
This diff is collapsed.
Click to expand it.
tests/fixtures/equivfixtures.class.php
+
9
−
1
View file @
e8b58633
...
@@ -611,7 +611,7 @@ class stack_equiv_test_data {
...
@@ -611,7 +611,7 @@ class stack_equiv_test_data {
$newarg
[
'title'
]
=
"Solving linear equations (nonsense)"
;
$newarg
[
'title'
]
=
"Solving linear equations (nonsense)"
;
$newarg
[
'narrative'
]
=
'In this argument we "move over" one term, but end up at the right answer.'
.
$newarg
[
'narrative'
]
=
'In this argument we "move over" one term, but end up at the right answer.'
.
'Actually, the term we "moved over" is zero, which is why we don\'t pick up the problem'
;
'Actually, the term we "moved over" is zero, which is why we don\'t pick up the problem'
;
$newarg
[
'casstring'
]
=
"[6*x-12=3*(x-2),6*x-12+3*(x-2)=0,
12
*x-
24
=0,x=2]"
;
$newarg
[
'casstring'
]
=
"[6*x-12=3*(x-2),6*x-12+3*(x-2)=0,
9
*x-
18
=0,x=2]"
;
$newarg
[
'debuglist'
]
=
"[EMPTYCHAR,EQUIVCHAR,EQUIVCHAR,EQUIVCHAR]"
;
$newarg
[
'debuglist'
]
=
"[EMPTYCHAR,EQUIVCHAR,EQUIVCHAR,EQUIVCHAR]"
;
$newarg
[
'outcome'
]
=
true
;
$newarg
[
'outcome'
]
=
true
;
$samplearguments
[]
=
$newarg
;
$samplearguments
[]
=
$newarg
;
...
@@ -862,6 +862,14 @@ class stack_equiv_test_data {
...
@@ -862,6 +862,14 @@ class stack_equiv_test_data {
$newarg
[
'section'
]
=
'Inequalities'
;
$newarg
[
'section'
]
=
'Inequalities'
;
$samplearguments
[]
=
$newarg
;
$samplearguments
[]
=
$newarg
;
$newarg
=
array
();
$newarg
[
'title'
]
=
"Solving an trivial inequality"
;
$newarg
[
'narrative'
]
=
''
;
$newarg
[
'casstring'
]
=
"[2*x<x^2,0<x*(x-2),(x>0 and x>2) or (x<0 and x<2),x>2 or x<0]"
;
$newarg
[
'debuglist'
]
=
"[EMPTYCHAR,EQUIVCHAR,EQUIVCHAR,EQUIVCHAR]"
;
$newarg
[
'outcome'
]
=
'unsupported'
;
$samplearguments
[]
=
$newarg
;
$newarg
=
array
();
$newarg
=
array
();
$newarg
[
'title'
]
=
"Solving a quadratic inequality"
;
$newarg
[
'title'
]
=
"Solving a quadratic inequality"
;
$newarg
[
'narrative'
]
=
'Solving quadratic inequalities using reasoning by equivalence.'
;
$newarg
[
'narrative'
]
=
'Solving quadratic inequalities using reasoning by equivalence.'
;
...
...
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