Tests are right, I was wrong.

The library does follow the rules. The thing I wanted can be expressed with 'Additional rules' (which are not implemented yet).
http://wiki.openstreetmap.org/wiki/Talk:Key:opening_hours#Closing_time_on_the_next_day