Post #3434498
2026-05-17 03:45 UTC
I added a few tests (yes, it didn't have any until now). It's mostly fairly small things, but most of the app is out of reach either way - we have no infra for testing UIs. So it will be mostly parser tests, and for now I'm testing a few math utilities, a function that formats timespans, and a function that turns filenames into game titles.
Speaking of the last one, I also fixed a few things.
It's fairly common to have ROMs prefixed by numbers - e.g. 0028 - Kirby - Canvas Curse (USA).nds. This filename would previously result in "0028 - Kirby - Canvas Curse" as the title, and now it's just "Kirby - Canvas Curse" instead. And there's a test for it as well, yes.
This is complicated by the fact a bunch of games actually have 4-digit numbers and a dash as part of their title:
1869 - Erlebte Geschichte Teil I
1941 - Counter Attack
1943 - The Battle of Midway
1943 - The Battle of Valhalla
1943 - One Year After
1985 - The Day After
1994 - Ten Years After
1999 - Hore, Mitakotoka! Seikimatsu
2010 - Street Fighter
2010 - The Graphic Action Game
I had to add special cases for these (and a test too, yes). For everything else though - no more numbers.
Replies (1)
-
@alice@mk.nyaa.place 2026-05-19 01:59
As mentioned in the other post, libmirage has landed initial CHD support. While it's too early to be used yet, I pushed a branch that enables it for testing. A second branch adds a list view to the library, in addition to grid. This is also very experimental, and will need a lot of work to make it usable and polished, so it's on a branch for now. This also required a fix in libadwaita, funnily enough: https://gitlab.gnome.org/GNOME/libadwaita/-/merge_requests/1750