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.

## Units

Test
?
Student response
Opt
Mark
Units
1/0
1
2
-1 ATUnits_STACKERROR_SAns.
TEST_FAILED
Units
1
1/0
2
-1 ATUnits_STACKERROR_TAns.
TEST_FAILED
Units
1
1
1/0
-1 ATUnits_STACKERROR_Opt.
TEST_FAILED
Units
x-1)^2
(x-1)^2
2
-1 ATUnitsTEST_FAILED-Empty SA.
Units
12.3*m*s^(-1)
3*m
[3,x]
-1 ATNumSigFigs_STACKERROR_not_integer.
Units
3*m*s^(-1)
3*m
[1,2,3]
-1 ATNumSigFigs_STACKERROR_list_wrong_length.
Units
12.3*m*s^(-1)
{12.3*m*s^(-1)}
3
-1 ATUnits_TA_not_expression.
Units
x=12.3*m*s^(-1)
12.3*m*s^(-1)
3
0 ATUnits_SA_not_expression.
Your answer needs to be a number together with units. Do not use sets, lists, equations or matrices.
Missing units
Units
12.3
12.3*m
3
0 ATUnits_SA_no_units.
Units
12
12.3*m
3
0 ATUnits_SA_no_units.
Units
1/2
12.3*m
3
0 ATUnits_SA_no_units.
Units
e^(1/2)
12.3*m
3
0 ATUnits_SA_no_units.
Units
9.81*m
12.3
3
-1 ATUnits_SB_no_units.
Only units
Units
m/s
12.3*m/s
3
0 ATUnits_SA_only_units.
Units
m
12.3*m/s
3
0 ATUnits_SA_only_units.
Units
9.81+m/s
9.81*m/s
3
Your answer must have units, and you must use multiplication to attach the units to a value, e.g. 3.2*m/s.
Basic tests
Units
12.3*m/s
12.3*m/s
3
1 ATUnits_units_match.
Units
12.4*m/s
12.3*m/s
3
0 ATNumSigFigs_Inaccurate. ATUnits_units_match.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
Units
12.4*m/s
12.3*m/s
[3,2]
1 ATUnits_units_match.
Units
12.45*m/s
12.3*m/s
[3,2]
0 ATNumSigFigs_WrongDigits. ATUnits_units_match.
Units
13.45*m/s
12.3*m/s
[3,2]
0 ATNumSigFigs_WrongDigits. ATNumSigFigs_Inaccurate. ATUnits_units_match.
Your answer contains the wrong number of significant digits. The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
Units
7.54E-5*(s*M)^-1
5.625E-5*s^-1
[3,2]
0 ATNumSigFigs_VeryInaccurate. ATUnits_incompatible_units.
Your units are incompatible with those used by the teacher.
Units
7.54E-5*(s*M)^-1
stackunits(5.625E-5,1/s)
[3,2]
0 ATNumSigFigs_VeryInaccurate. ATUnits_incompatible_units.
Your units are incompatible with those used by the teacher.
Units
12*m/s
12.3*m/s
3
0 ATNumSigFigs_WrongDigits. ATNumSigFigs_Inaccurate. ATUnits_units_match.
Your answer contains the wrong number of significant digits. The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
Units
-9.81*m/s^2
-9.81*m/s^2
3
1 ATUnits_units_match.
Units
-9.82*m/s^2
-9.815*m/s^2
3
1 ATUnits_units_match.
Units
-9.81*m/s^2
-9.815*m/s^2
3
0 ATNumSigFigs_Inaccurate. ATUnits_units_match.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
Units
-9.81*m*s^(-2)
-9.81*m/s^2
3
1 ATUnits_units_match.
Units
-9.82*m/s^2
-9.81*m/s^2
3
0 ATNumSigFigs_Inaccurate. ATUnits_units_match.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
Units
-9.81*m*s^(-2)
-9.81*m/s^2
3
1 ATUnits_units_match.
Units
-9.81*m/s/s
-9.81*m/s^2
3
1 ATUnits_units_match.
Units
-9.81*m/s
-9.81*m/s^2
3
0 ATUnits_incompatible_units. ATUnits_correct_numerical.
Units
-9.81*m/s
-9.81*m/s^2
3
0 ATUnits_incompatible_units. ATUnits_correct_numerical.
Units
(-9.81)*m/s^2
-9.81*m/s^2
3
1 ATUnits_units_match.
Units
520*amu
520*amu
3
1 ATNumSigFigs_WithinRange. ATUnits_units_match.
Units
520*amu
521*amu
3
0 ATNumSigFigs_WithinRange. ATNumSigFigs_Inaccurate. ATUnits_units_match.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
Missing units
Units
(-9.81)
-9.81*m/s^2
3
0 ATUnits_SA_no_units.
Units
9.81*m/s
-9.81*m/s^2
3
0 ATNumSigFigs_WrongSign. ATUnits_incompatible_units.
Your answer has the wrong algebraic sign. Your units are incompatible with those used by the teacher.
Units
8.81*m/s
-9.81*m/s^2
3
0 ATNumSigFigs_WrongSign. ATNumSigFigs_VeryInaccurate. ATUnits_incompatible_units.
Your answer has the wrong algebraic sign. Your units are incompatible with those used by the teacher.
Units
8.1*m/s
-9.81*m/s^2
3
0 ATNumSigFigs_WrongDigits. ATNumSigFigs_WrongSign. ATNumSigFigs_VeryInaccurate. ATUnits_incompatible_units.
Units
m/4
0.25*m
3
0 ATNumSigFigs_WrongDigits. ATUnits_units_match.
Student is too exact
Units
pi*s
3.14*s
3
0 ATNumSigFigs_WrongDigits. ATUnits_units_match.
Units
sqrt(2)*m
1.41*m
3
0 ATNumSigFigs_WrongDigits. ATUnits_units_match.
Different units
Units
25*g
0.025*kg
2
1 ATUnits_compatible_units kg.
Units
26*g
0.025*kg
2
0 ATNumSigFigs_Inaccurate. ATUnits_compatible_units kg.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
Units
100*g
10*kg
2
0 ATNumSigFigs_WithinRange. ATNumSigFigs_VeryInaccurate. ATUnits_compatible_units kg.
Units
0.025*g
0.025*kg
2
0 ATUnits_compatible_units kg. ATUnits_correct_numerical.
Units
1000*m
1*km
2
1 ATNumSigFigs_WithinRange. ATUnits_compatible_units m.
Units
1*Mg/10^6
1*N*s^2/(km)
1
1 ATUnits_compatible_units kg.
Units
1*Mg/10^6
1*kN*ns/(mm*Hz)
1
1 ATUnits_compatible_units kg.
Units
3.14*Mg/10^6
%pi*kN*ns/(mm*Hz)
3
1 ATUnits_compatible_units kg.
Units
3.141*Mg/10^6
%pi*kN*ns/(mm*Hz)
3
0 ATNumSigFigs_WrongDigits. ATUnits_compatible_units kg.
Units
4.141*Mg/10^6
%pi*kN*ns/(mm*Hz)
3
0 ATNumSigFigs_WrongDigits. ATNumSigFigs_VeryInaccurate. ATUnits_compatible_units kg.
Units
400*cc
0.4*l
2
1 ATNumSigFigs_WithinRange. ATUnits_compatible_units m^3.
Units
400*cm^3
0.4*l
2
1 ATNumSigFigs_WithinRange. ATUnits_compatible_units m^3.
Units
400*ml
0.4*l
2
1 ATNumSigFigs_WithinRange. ATUnits_compatible_units m^3.
Units
18*kJ
18000.0*J
2
1 ATUnits_compatible_units (kg*m^2)/s^2.
Units
18.1*kJ
18000.0*J
2
0 ATNumSigFigs_WrongDigits. ATUnits_compatible_units (kg*m^2)/s^2.
Units
120*kWh
0.12*MWh
2
1 ATUnits_compatible_units (kg*m^2)/s^2.
Units
2.0*hh
720000*s
2
1 ATUnits_compatible_units s.
Units
723*kVA
0.723*MVA
3
1 ATUnits_compatible_units VA.
Edge case
Units
0*m/s
0*m/s
1
1 ATUnits_units_match.
Units
0.0*m/s
0*m/s
1
1 ATUnits_units_match.
Units
0*m/s
0.0*m/s
1
1 ATUnits_units_match.
Units
0.00*m/s
0.0*m/s
2
1 ATUnits_units_match.
Units
0.0*km/s
0.0*m/s
1
1 ATUnits_compatible_units m/s.
Units
0.0*m
0.0*m/s
1
0 ATUnits_incompatible_units. ATUnits_correct_numerical.
Units
0.0
0.0*m/s
1
0 ATUnits_SA_no_units.
Imperial
Units
7*in
7*in
1
1 ATUnits_units_match.
Units
6*in
0.5*ft
1
1 ATUnits_compatible_units in.
Units
2640*ft
0.5*mi
4
1 ATNumSigFigs_WithinRange. ATUnits_compatible_units in.
Units
2650*ft
0.5*mi
4
0 ATNumSigFigs_WithinRange. ATNumSigFigs_VeryInaccurate. ATUnits_compatible_units in.
TODO
Units !
142.8*C
415.9*K
4
-3 ATNumSigFigs_VeryInaccurate. ATUnits_incompatible_units.
Your units are incompatible with those used by the teacher.
Units !
520*mamu
520*mamu
3
-3 ATUnits_SB_no_units.
Units
-9.82*m/s^2
stackunits(-9.815,m/s^2)
3
1 ATUnits_units_match.
Units
-9.81*m/s^2
stackunits(-9.815,m/s^2)
3
0 ATNumSigFigs_Inaccurate. ATUnits_units_match.
The accuracy of your answer is not correct. Either you have not rounded correctly, or you have rounded an intermediate answer which propagates an error.
Units
-9.82*m/s^2
stackunits(displaydp(-9.815,3)
,m/s^2)
3
1 ATUnits_units_match.
Units
-9.82*m/s^2
stackunits(displaysf(-9.815,4)
,m/s^2)
3
1 ATUnits_units_match.