mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-19 06:43:42 +00:00
feat: new ui (#1455)
This commit is contained in:
742 files changed
+59951
-5934
No files matched your search
@@ -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');
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user