sync last dev with cyr2lat

This commit is contained in:
HDDen
2026-05-01 01:38:31 +03:00
parent ca6058eccd
commit f63d50f0da
17 changed files with 528 additions and 66 deletions
+4 -16
View File
@@ -36,10 +36,7 @@ void main() {
});
test('repeater', () {
expect(
_contact(type: advTypeRepeater).typeLabel(l10n),
'Repeater',
);
expect(_contact(type: advTypeRepeater).typeLabel(l10n), 'Repeater');
});
test('room', () {
@@ -57,24 +54,15 @@ void main() {
group('Contact.pathLabel (override)', () {
test('override < 0 -> flood (forced)', () {
expect(
_contact(pathOverride: -1).pathLabel(l10n),
'Flood (forced)',
);
expect(_contact(pathOverride: -1).pathLabel(l10n), 'Flood (forced)');
});
test('override == 0 -> direct (forced)', () {
expect(
_contact(pathOverride: 0).pathLabel(l10n),
'Direct (forced)',
);
expect(_contact(pathOverride: 0).pathLabel(l10n), 'Direct (forced)');
});
test('override > 0 -> hops (forced)', () {
expect(
_contact(pathOverride: 3).pathLabel(l10n),
'3 hops (forced)',
);
expect(_contact(pathOverride: 3).pathLabel(l10n), '3 hops (forced)');
});
test('override takes precedence over pathLength', () {