TactivergeLite

Lite / Discovering How the World Works / Week 18

Test it, improve it, present it

Your machine works perfectly in your head. How do you prove it works in every situation, and convince someone else?

About 40 min · 3 goals · Reviewed by the founders' mentors · Full interactive version

Why should I care?

A design isn't finished when it's drawn; it's finished when it's tested and explained. Engineers who test every path, admit what failed, and improve because of it build machines people can trust.

Safety: Keep your machine simulated or conceptual. If you make a physical model, an adult must review it first; no mains power, blades, heat or water near electricity.

Predict

Your smart fan design has 4 paths through its flowchart. What's the minimum number of test runs to try every path?

  1. 1
  2. 3
  3. 4
Guess first, then reveal

4: one input set per path. Fewer runs leave a path untested, and that's where hidden mistakes live. Add extra runs for edge cases (like exactly 26 °C) on top.

Discover

Treat the smart fan as a client's design. Test all four paths, then change the rule's temperature and test the edge (temperature exactly equal to the rule). Write down one improvement you would suggest, with the test that convinced you.

What the interactive shows (text version)

The decision runner lets you set a smart fan's inputs, step through its flowchart and tick off each of its four paths in a test log. Changing the rule's temperature limit and testing a room temperature exactly equal to it shows the edge case: 'hotter than 26' is false at 26, so the fan stays off.

You can also open the interactive on the full site when you have a faster connection.

Understand

Plan the tests

Make a table: test number, inputs, expected result, actual result, pass/fail. Include:

Test honestly, then improve

Run each test in your simulation or walk it through on paper, and record what actually happens, even when it fails. A failed test is useful: it tells you what to fix. Make at least one improvement, then re-run the tests to check you fixed it without breaking something else.

Present like an engineer

A short presentation (or poster) covers: the problem and objective → how it works (sketch, mechanism, ratio) → how it decides (flowchart or truth table) → test evidence → the improvement and why → what you'd do next. Use your diagrams. Say clearly what is simulated or assumed (no friction, perfect sensors) and what you'd need to check in real life.

Explain it another way

Intuitive

Testing is like checking every door in a house before you leave, not just the front one. The back door you forgot is the one that matters.

Technical

Path coverage plus boundary-value testing catches most logic errors in small controllers. A fault-injection test (forcing a sensor to a fixed value) checks fail-safe behaviour. Regression testing re-runs earlier tests after every change.

Applied

Before a lift, car or medical device is approved, engineers present test evidence to independent reviewers. Being clear about assumptions and limits is part of the job, not an admission of weakness.

Worked example 1

Write edge-case tests for 'IF moisture < 30 THEN water'.

Moisture 29 → water (just below). Moisture 30 → don't water (exactly on: 30 < 30 is false). Moisture 31 → don't water. Sensor stuck at 0 → it would water every cycle! Improvement: add a daily limit of 200 ml so a broken sensor can't flood the pot.

Common mix-ups

Practice

Practice, not a test. Answers are checked on our server; a wrong answer gets a hint and another try. Nothing is saved.

Practice 1. A rule says IF distance < 10 cm THEN stop. Which set of distances is the best edge-case test?
Practice 2. A plant waterer's moisture sensor gets stuck reading 0 (bone dry). Which design change makes the machine safest?
Practice 3. You changed a threshold to fix a failed test. What should you do next?

tests

Practice 5. Your simulated machine assumes no friction. What should your presentation say?

Apply it

Finish your term project: write and run your test plan (every path, every edge, one broken-sensor case), make one improvement and re-test, then prepare a 3-minute presentation or one-page poster using your sketch, flowchart and test table.

Reflect

Which test surprised you most, and what did it teach you about your design?

Write your answer on paper or in your own notes. Lite never stores what you write.

← Plan your machine: from problem to designAutomatic or intelligent? →