Skip to content

Units: Answer test results

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
Teacher answer
Opt
Mark
Answer note
Units
1/0
1
2
-1 ATUnits_STACKERROR_SAns.
TEST_FAILED
The answer test failed to execute correctly: please alert your teacher. Division by zero.
Units
1
1/0
2
-1 ATUnits_STACKERROR_TAns.
TEST_FAILED
The answer test failed to execute correctly: please alert your teacher. Division by zero.
Units
1
1
1/0
-1 ATUnits_STACKERROR_Opt.
TEST_FAILED
The answer test failed to execute correctly: please alert your teacher. Division by zero.
Units
x-1)^2
(x-1)^2
2
-1 ATUnitsTEST_FAILED-Empty SA.
The answer test failed to execute correctly: please alert your teacher. Attempted to execute an answer test with an empty student answer, probably a CAS validation problem when authoring the question.
Units
12.3*m*s^(-1)
3*m
[3,x]
-1 ATNumSigFigs_STACKERROR_not_integer.
The answer test failed to execute correctly: please alert your teacher.
Units
3*m*s^(-1)
3*m
[1,2,3]
-1 ATNumSigFigs_STACKERROR_list_wrong_length.
The answer test failed to execute correctly: please alert your teacher.
Units
12.3*m*s^(-1)
{12.3*m*s^(-1)}
3
-1 ATUnits_TA_not_expression.
The answer test failed to execute correctly: please alert your teacher.
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.
Your answer must have units.
Units
12
12.3*m
3
0 ATUnits_SA_no_units.
Your answer must have units.
Units
1/2
12.3*m
3
0 ATUnits_SA_no_units.
Your answer must have units.
Units
e^(1/2)
12.3*m
3
0 ATUnits_SA_no_units.
Your answer must have units.
Units
9.81*m
12.3
3
-1 ATUnits_SB_no_units.
The answer test failed to execute correctly: please alert your teacher.
Only units
Units
m/s
12.3*m/s
3
0 ATUnits_SA_only_units.
Your answer needs to be a number together with units. Your answer only has units.
Units
m
12.3*m/s
3
0 ATUnits_SA_only_units.
Your answer needs to be a number together with units. Your answer only has units.
Bad units
Units
9.81+m/s
9.81*m/s
3
0 ATUnits_SA_bad_units.
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.
Your answer contains the wrong number of significant digits.
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.
Your units are incompatible with those used by the teacher. Please check your units carefully.
Units
-9.81*m/s
-9.81*m/s^2
3
0 ATUnits_incompatible_units. ATUnits_correct_numerical.
Your units are incompatible with those used by the teacher. Please check your units carefully.
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.
Your answer must have 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.
Your answer contains the wrong number of significant digits. Your answer has the wrong algebraic sign. Your units are incompatible with those used by the teacher.
Units
m/4
0.25*m
3
0 ATNumSigFigs_WrongDigits. ATUnits_units_match.
Your answer contains the wrong number of significant digits.
Student is too exact
Units
pi*s
3.14*s
3
0 ATNumSigFigs_WrongDigits. ATUnits_units_match.
Your answer contains the wrong number of significant digits.
Units
sqrt(2)*m
1.41*m
3
0 ATNumSigFigs_WrongDigits. ATUnits_units_match.
Your answer contains the wrong number of significant digits.
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.
Please check your units carefully.
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.
Your answer contains the wrong number of significant digits.
Units
4.141*Mg/10^6
%pi*kN*ns/(mm*Hz)
3
0 ATNumSigFigs_WrongDigits. ATNumSigFigs_VeryInaccurate. ATUnits_compatible_units kg.
Your answer contains the wrong number of significant digits.
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.
Your answer contains the wrong number of significant digits.
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.
Your units are incompatible with those used by the teacher. Please check your units carefully.
Units
0.0
0.0*m/s
1
0 ATUnits_SA_no_units.
Your answer must have 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.
TO-DO
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.
The answer test failed to execute correctly: please alert your teacher.
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.