Measured samples
Each sample below was built on made-up or public data and then checked again by a separate reviewer. The numbers are the ones that review measured.
Data extraction and clean-up
-
Messy CSV clean-up
11 rows in, 8 rows out: 2 duplicate rows and 1 blank row removed.
Dates such as 15/02/2024 and Mar 3, 2024 became 2024-02-15 and 2024-03-03; numbers such as 1,200 became 1200. Rows with bad values are listed in a report.
11 automated tests pass.
-
Excel workbook clean-up
80 cells edited and 6 rows removed, each one listed in a change log.
3 values that could not be fixed safely were left as they were and logged. The original file was not changed: its checksum was the same before and after.
12 automated tests pass.
-
Public data to a clean table
146 yearly values turned into 15 decade averages from the public NASA GISS GISTEMP v4 temperature table (CC0 licence).
A separate calculation matched all 15 averages. The output is a CSV file and a labelled chart.
6 automated tests pass.
-
CSV merge and JSON to CSV
2 + 2 rows merged into 4; with duplicate removal on, 1 exact duplicate was dropped.
Files with a different header are refused with a clear message instead of being merged wrongly.
10 automated tests pass.
Translation
-
Form, Portuguese to English
22 form rows and 19 fields kept in the same order.
17 numbers and dates in the source, 0 missing in the translation. Stamps and signatures are described in brackets; one smudged word is marked [?].
The form is fictional.
Tests and bug fixes
-
Python: missing last page
21 items at 10 per page now show all 3 pages; before the fix the last, partial page was missing.
The failing test came first; a one-line fix then made all 3 tests pass.
-
TypeScript: discount rounding
Three 99-cent items at 50% off now come to 149 cents; before the fix each item was rounded on its own and the total came out too high.
The failing test was saved first; the fix rounds the discounted subtotal once and all 3 tests pass.