This page exposes the results of running answer tests on STACK test cases. This page is automatically generated from the STACK unit tests and is designed to show question authors what answer tests actually do. This includes cases where answer tests currentl fail, which gives a negative expected mark. Comments and further test cases are very welcome.

## SameType

Test
?
Student response
Opt
Mark
SameType
1/0
1
-1 ATSameType_STACKERROR_SAns.
TEST_FAILED
SameType
1
1/0
-1 ATSameType_STACKERROR_TAns.
TEST_FAILED
Numbers
SameType
4^(-1/2)
1/2
1
Lists
SameType
x
[1,2,3]
0
SameType
[1,2]
[1,2,3]
1
SameType
[1,x>2]
[1,2<x]
1
SameType
[1,x,3]
[1,2<x,4]
0
Sets
SameType
x
{1,2,3}
0
SameType
{1,2}
{1,2,3}
1
Matrices
SameType
matrix([1,2],[2,3])
matrix([1,2],[2,3])
1
SameType
[[1,2],[2,3]]
matrix([1,2],[2,3])
0
SameType
matrix([1,2],[2,3])
matrix([1,2,3],[2,3,3])
1
SameType
matrix([x>4,{1,x^2}],[[1,2]
,[1,3]])
matrix([4-x<0,{x^2, 1}],[[1
,2],[1,3]])
1
SameType
matrix([x>4,[1,x^2]],[[1,2]
,[1,3]])
matrix([4-x<0,{x^2, 1}],[[1
,2],[1,4]])
0
Equations
SameType
1
x=1
0
SameType
x=1
x=1
1
Inequalities
SameType
1
x>1
0
SameType
x>2
x>1
1
SameType
x>1
x>=1
1
SameType
x>1 and x<3
x>=1
1
SameType
{x>1,x<3}
x>=1
0
SameType
sqrt(2)*sqrt(3)+2*(sqrt(2/3))*
x-(2/3)*(sqrt(2/3))*x^2+(4/9)*
(sqrt(2/3))*x^3
4*sqrt(6)*x^3/27-(2*sqrt(6)*x^
2)/9+(2*sqrt(6)*x)/3+sqrt(6)
1