posts /

Addressextract testing

Posted Sat Oct 31 19:20:17 2026 Florian Lohoff
in

Today i made my first steps using Claude (sonnet-5) to add coverage, unit and mutation testing to addressextract. The testing needed synthetic input data which claude proudly produced.

I find it really fascinating how it derived the corner cases from the code and made the transformation into an osm.xml which contains all those cornercases.

The first shows admin and postal code boundaries, buildings and addresses in all sorts of relations. Some positions are to evade caching tricks in the Quad Tree. Some really present errors addressextract shall find like address A on node within building outline with address B. All kinds of missing tags, wrong tags, overlapping tags.

Some are to trick the position inside the bounding box, but outside of the geometry.

Fascinating times.