Skip to content

Commit 9815d9e

Browse files
committed
reworked validator, validator2, and expandable tests to conform to the template format.
1 parent 2834fc1 commit 9815d9e

File tree

3 files changed

+44
-21
lines changed

3 files changed

+44
-21
lines changed

testXourses/testFiles/expandable.tex

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,29 @@
1010

1111
\section{Basic Usage}
1212

13+
The environment expandable creates an expandable section in the html, so that the content can be shown online, but is initially loaded as hidden.
14+
15+
This is a purely html based feature currently.
16+
17+
\section{Intended Outcome of Test}
18+
19+
There should be two html segments below.
20+
21+
The first one should have \texttt{A first example of an expandable environment.} followed by
22+
a collapsed box with an arrow to the right that allows you to expand it and show:
23+
\begin{quote}
24+
This is the content of the expandable environment. It can contain text, images, or any other LaTeX content.
25+
\end{quote}
26+
27+
Below that should have \texttt{Another example of an expandable environment, now a remark.} followed by
28+
a collapsed box with an arrow to the right that allows you to expand it and show:
29+
\begin{quote}
30+
This is the content of the expandable environment. It can contain text, images, or any other LaTeX content.
31+
\end{quote}
32+
33+
34+
\section{Start of Test/Demo Area}
35+
1336
\begin{expandable}{example}{A first example of an expandable environment.}
1437
This is the content of the expandable environment. It can contain text, images, or any other LaTeX content.
1538
\end{expandable}
@@ -18,9 +41,7 @@ \section{Basic Usage}
1841
This is the content of the expandable environment. It can contain text, images, or any other LaTeX content.
1942
\end{expandable}
2043

21-
\section{Intended Outcome of Test}
2244

23-
\section{Start of Test/Demo Area}
2445

2546
\hrulefill
2647
\end{document}

testXourses/testFiles/validator.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313

1414
\section{Basic Usage}
1515

16-
This file demonstrates the following validators: equalMaterix, multiAns, sameDerivative,
16+
This file demonstrates the following validators: equalMaterix, multiAns, sameDerivative.
17+
These are all implemented using the \verb|validator=(name of validator)| as an optional parameter in the \verb|\answer| command.
1718

1819
\section{Intended Outcome of Test}
1920

testXourses/testFiles/validator2.tex

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
\section{Basic Usage}
1515

1616
This file demonstrates the following validators: factorCheck
17+
This is implemented using the \verb|validator=factorCheck| as an optional parameter in the \verb|\answer| command.
1718

1819
\section{Intended Outcome of Test}
1920
\subsection*{factorCheck}
@@ -26,24 +27,24 @@ \section{Intended Outcome of Test}
2627
\section{Start of Test/Demo Area}
2728

2829
\subsection*{factorCheck}
29-
\begin{problem}
30-
Consider the polynomial $x^3 - 4x^2 - 4x + 16$. You might want the student to just do the factor by grouping step
31-
and want them to enter in $(x^2-4)(x-4)$.
32-
Try trying in the full polynomial versus a fully factored version,
33-
versus the desired version: $\answer[validator=factorCheck]{(x^2-4)(x-4)}$
34-
\end{problem}
35-
36-
\begin{problem}
37-
Now, let's say you want them to fully factor, not just factor by grouping.
38-
Try the factor by grouping version versus unfactored vs fully factored here: $\answer[validator=factorCheck]{(x-2)(x+2)(x-4)}$
39-
\end{problem}
40-
41-
\begin{problem}
42-
Adding another problem here that deliberately has some repeated factors to show they work.
43-
The answer should be $(x-1)^3(x+1)(x^2-1)$.
44-
45-
$\answer[validator=factorCheck]{(x-1)^3(x+1)(x^2-1)}$
46-
\end{problem}
30+
\begin{problem}
31+
Consider the polynomial $x^3 - 4x^2 - 4x + 16$. You might want the student to just do the factor by grouping step
32+
and want them to enter in $(x^2-4)(x-4)$.
33+
Try trying in the full polynomial versus a fully factored version,
34+
versus the desired version: $\answer[validator=factorCheck]{(x^2-4)(x-4)}$
35+
\end{problem}
36+
37+
\begin{problem}
38+
Now, let's say you want them to fully factor, not just factor by grouping.
39+
Try the factor by grouping version versus unfactored vs fully factored here: $\answer[validator=factorCheck]{(x-2)(x+2)(x-4)}$
40+
\end{problem}
41+
42+
\begin{problem}
43+
Adding another problem here that deliberately has some repeated factors to show they work.
44+
The answer should be $(x-1)^3(x+1)(x^2-1)$.
45+
46+
$\answer[validator=factorCheck]{(x-1)^3(x+1)(x^2-1)}$
47+
\end{problem}
4748

4849

4950
\hrulefill

0 commit comments

Comments
 (0)