feat: new ui (#1455)

This commit is contained in:
Levi authored and GitHub committed 2026-09-05 19:53:41 +08:00
1 parent 3be8db664c
commit 177c225f16
742 files changed
+59951 -5934

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:gopeed/util/package_info.dart';
void main() {
group('normalizeAppVersion', () {
test('treats a four-part platform version as a beta version', () {
expect(normalizeAppVersion('2.0.0.1'), '2.0.0-beta.1');
expect(normalizeAppVersion('2.0.0.12'), '2.0.0-beta.12');
});
test('keeps stable and semantic prerelease versions unchanged', () {
expect(normalizeAppVersion('2.0.0'), '2.0.0');
expect(normalizeAppVersion('2.0.0-beta.1'), '2.0.0-beta.1');
});
});
}