feat: complete academic symbol lexicon heal, 2-column Cooper extraction, and updated assets

This commit is contained in:
2026-10-09 15:26:58 +05:00
parent 7f91366201
commit 0b12e4583b
244 changed files with 611461 additions and 1617 deletions
@@ -0,0 +1,26 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:words999/services/external_symbols_repository.dart';
void main() {
TestWidgetsFlutterBinding.ensureInitialized();
test('ExternalSymbolsRepository loads 2300+ symbols and supports search and illustrations', () async {
final repo = ExternalSymbolsRepository();
await repo.init();
expect(repo.isLoaded, isTrue);
expect(repo.totalCount, greaterThanOrEqualTo(1400));
// Test search
final results = repo.search('акант');
expect(results.isNotEmpty, isTrue);
expect(results.first.term.toLowerCase(), contains('акант'));
expect(results.first.sources.isNotEmpty, isTrue);
// Test with illustrations
final withImages = repo.search('', onlyWithImages: true);
expect(withImages.isNotEmpty, isTrue);
expect(withImages.first.hasIllustrations, isTrue);
expect(withImages.first.illustrations.first['file'], isNotEmpty);
});
}