fluentBackendConformanceChecks function

List<ConformanceCheck> fluentBackendConformanceChecks(
  1. FluentBackend create(), {
  2. BackendExpectations expectations = const BackendExpectations(),
})

Build the conformance checks for the backend produced by create, gated by expectations.

The headline check is the F8 regression guard: for a locale-aware backend, NUMBER($n, minimumFractionDigits: 1) with n = 1 renders 1.0, whose visible fraction digit selects other, not one, in English. A backend that ignores visible fraction digits fails here.

Implementation

List<ConformanceCheck> fluentBackendConformanceChecks(
  FluentBackend Function() create, {
  BackendExpectations expectations = const BackendExpectations(),
}) {
  final h = ConformanceHarness(create);
  return [
    ...coreChecks(h, expectations),
    ...numberChecks(h, expectations),
    ...datetimeChecks(h, expectations),
    ...degradeChecks(h, expectations),
  ];
}