SENG 365 — Software Engineering
2026-08-06
Reading: Robillard, 3rd ed. — Ch. 5, Unit Testing (pp. 97–123).
Write a set of TDD-driven tests that convert Roman numerals to decimal.
I=1 V=5 X=10 L=50 C=100 D=500 M=1000 — e.g. VII = 7, MDXX = 1520.
Rule: add values unless a smaller numeral precedes a larger one, in which case subtract (XL = 40).
test && commit || revertSometimes we must test private methods — they are units too.
InstructorTest class.java.lang.Class is the basis.The book uses: Fast, Independent, Repeatable, Focused, Readable.
NullMove — we care that it was delegated, not how).
Neil Ernst ©️