Skip to content

Discovery floors say 11 range unions; there are 13 #222

Closed

Description

@CaffeinatedCoder

Problem

ClosedUnionContractTests.KnownUnions is 11, and RangeOrderParityTests and DifferentialFuzzParityTests assert at least 11 discovered unions. There are 13 since the float family (#153): 9 core and 4 NodaTime. So both float unions could drop out of discovery, for example through a broken IRangeFactory<,> registration, and the closed-union, order and fuzz sweeps would still pass. Found by the pre-tag analysis (#179).

Change

Raise each floor to 13. Better, derive the expected count from the same reflection the conventions project uses to discover types, so the next type doesn't need an edit, and keep a hard floor only as a guard against discovery returning nothing. Show that removing one float union from discovery fails each test.

Activity

  1. added this to the 10.0.0 milestone on Oct 18, 2026
  2. added
    tests
    area/ranges
    package/nodatime
    package/core
    on Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/rangespackage/corepackage/nodatimetests

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions