ShipSchemaPinTests: test each allowed character mid-ID, where a trailing dot cannot refuse it

Builds: yes. The previous commit's pin test failed on '.' (a dot last is refused by its own rule).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-10 10:21:35 +02:00
commit 2be6ed9de7

View file

@ -77,7 +77,7 @@ public sealed class ShipSchemaPinTests
for (var code = 0; code < 256; code++)
{
var c = (char)code;
Assert.Equal(allowed.Contains(c), Accepts("a" + c));
Assert.Equal(allowed.Contains(c), Accepts("a" + c + "a"));
Assert.Equal(allowed.Contains(c) && c != '.' && c != '_' && c != '-', Accepts(c + "a"));
}
var stems = new List<string>();