Lesson 3 of 4 · Discriminating test inputs
Choose discriminating test inputs
19 minute lesson · 3 checks along the way
Your goal for this lessonFind which known input vectors distinguish a declared mapping from specified implementation mistakes.
In this lesson 3 sections · 3 checks
Read & understand
Some inputs conceal an axis mistake
A zero input produces zero under every linear coordinate map. It can reveal an unexpected additive offset, but it cannot distinguish rotations or axis permutations. An equal-component input also hides information: swapping identical components leaves no visible trace of that swap. A convenient test value is not automatically a discriminating test value. Decide which possible mistake the input is meant to expose.
To make the limitation precise, enumerate a fictional fault family that reorders the three components and independently chooses each sign. There are six permutations and eight sign choices, giving 48 maps. Half preserve handedness and half reverse it. All 48 preserve magnitude. Comparing complete outputs against the intended map leaves 48 candidates for input (0, 0, 0), eight for (1, 0, 0), and six for (1, 1, 1).
Check 1 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
Basis inputs reveal a fixed linear map
Use the three labelled unit inputs in turn. Sensor x, (1, 0, 0), must produce (0, 1, 0). Sensor y, (0, 1, 0), must produce (−1, 0, 0). Sensor z, (0, 0, 1), must produce (0, 0, 1). These outputs are the columns of the required matrix. Checking all three exposes every incorrect member of our signed-permutation family.
The argument extends to any fixed linear map: every input (x, y, z) is x times the first basis vector plus y times the second plus z times the third. Linearity therefore determines its output from those three tested columns. This reasoning depends on the model assumption. Three tests do not establish that an arbitrary program is linear, that an instrument never saturates, or that its behavior stays constant with temperature and time.
Check 2 of 3
10 pointsUse the reading above. You can try again without losing points.
Read & understand
A compact test has a limited claim
The mixed input (1, 2, 3) has distinct, nonzero component magnitudes. Within our 48 signed-permutation candidates, only the intended map produces (−2, 1, 3). This single input is enough to identify the correct member of that finite family. It is not enough to prove correctness over every possible linear map, let alone all nonlinear implementations.
For a counterexample, define a faulty linear map with output (2x − 2y, x, z). At (1, 2, 3), it produces the expected (−2, 1, 3). But at sensor x input (1, 0, 0), it gives (2, 1, 0) instead of (0, 1, 0). Preserve that counterexample when reporting coverage: a test can eliminate all listed faults while an unlisted implementation error remains possible.
Choose inputs that expose differences
Exact original enumeration of 48 signed permutations. A mixed vector identifies one member of this finite family. A general fixed linear map needs its basis outputs; neither argument proves arbitrary nonlinear code correct.
Open full-size diagram in a new tab: Choose inputs that expose differencesRead diagram data as a table
| Input test | Signed-permutation candidates matching intended outputs |
|---|---|
| (0, 0, 0) | 48 |
| (1, 0, 0) | 8 |
| (1, 1, 1) | 6 |
| (1, 2, 3) | 1 |
| All three basis inputs | 1 |
Exact original enumeration of 48 signed permutations. A mixed vector identifies one member of this finite family. A general fixed linear map needs its basis outputs; neither argument proves arbitrary nonlinear code correct.
Check 3 of 3
10 pointsUse the reading above. You can try again without losing points.
Put it together
Your lesson progress
Each check connects to a part of the story. Complete all 3 to earn your 25-point lesson bonus.
Explore further · Optional
Go to the source
Explore the evidence behind this lesson. These optional readings and videos open in a new tab.
- Read: NASA: product realization and integrationGeneral comparison: integrated testing, declared configurations, test evidence and verification versus validation.
- Read: JPL NAIF: reference framesGeneral frame-convention reference; from/to frames and transformations. Fictional signed-axis maps below are not SPICE kernels or mission specifications.