Add the twelve contests left in the station's log
REF, the Ukrainian DX contest, the BARTG Sprint, ARRL 10M, Russian DX RTTY, RDAC, YO DX HF, Oceania DX, IARU Region 1 Field Day, SARTG RTTY, All Asian and SA 10. Every contest name in the log now opens, and every one of these but Field Day scores its log contact for contact as N1MM did. Most are written from N1MM's own class and checked against the log. Three things the log settled that the class does not say plainly: ARRL 10M counts its multipliers once per mode rather than once, the BARTG Sprint counts a continent once in the contest while its countries and call areas count per band, and RDAC counts nothing but the districts and scores nothing for a station that sends none. All Asian and SA 10 have no class in N1MM, which logs them from a .udc file, so those two are written from the published rules and the log. docs/unfinished.md lists what is still not settled. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RoGtneMQaz4M9w7Kk49AVD
This commit is contained in:
25
tests/Nonemm.Contests.Tests/UkrainianDxTests.cs
Normal file
25
tests/Nonemm.Contests.Tests/UkrainianDxTests.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using Nonemm.Contests.Rules;
|
||||
using Nonemm.Core;
|
||||
|
||||
namespace Nonemm.Contests.Tests;
|
||||
|
||||
public class UkrainianDxTests
|
||||
{
|
||||
private static ContestLog LogFor() => new(new UkrainianDx(), TestLog.Germany, TestLog.CountryFile);
|
||||
|
||||
[Theory]
|
||||
[InlineData("UR5XYZ", 10)]
|
||||
[InlineData("DL9XYZ", 1)]
|
||||
[InlineData("IK2XYZ", 2)]
|
||||
[InlineData("JA1XYZ", 3)]
|
||||
public void UkraineIsWorthTen(string call, int expected) =>
|
||||
Assert.Equal(expected, LogFor().Judge(TestLog.Contact(call, section: "DO")).Points);
|
||||
|
||||
[Fact]
|
||||
public void OnlyUkraineBringsAnOblast() =>
|
||||
Assert.Equal(
|
||||
[1],
|
||||
LogFor().Judge(TestLog.Contact("IK2XYZ", section: "DO")).NewMultipliers
|
||||
.Select(m => m.Index)
|
||||
.ToList());
|
||||
}
|
||||
Reference in New Issue
Block a user