import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:pluriwave/l10n/gen/app_localizations.dart'; /// S5-R5: bare counters must use proper ARB plural messages. void main() { test('stationCount cambia entre singular y plural (en)', () async { final l10n = await AppLocalizations.delegate.load(const Locale('en')); expect(l10n.stationCount(1), '1 station'); expect(l10n.stationCount(5), '5 stations'); }); test('stationCount cambia entre singular y plural (es)', () async { final l10n = await AppLocalizations.delegate.load(const Locale('es')); expect(l10n.stationCount(1), isNot(l10n.stationCount(5))); expect(l10n.stationCount(5), contains('5')); }); }