Add cxyz Android project structure and initial configuration
- Introduced a new Flutter project for the cxyz Android manga/comic reader, including essential files such as pubspec.yaml, AndroidManifest.xml, and Gradle configuration. - Added .gitignore files to exclude unnecessary files and directories for both the main project and Android-specific files. - Implemented initial README.md with project description, features, setup instructions, and API details for ComicLand, MangaRead, and MangaTown. - Configured analysis options and dependencies in pubspec.yaml to support Flutter development. - Established a pnpm workspace and lockfile for dependency management. - Included various Android resources such as icons, styles, and launch backgrounds for a complete application setup.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:cxyz_android/services/reader_zoom.dart';
|
||||
|
||||
void main() {
|
||||
test('clamp stays in range and snaps to step', () {
|
||||
expect(ReaderZoom.clamp(0.1), ReaderZoom.min);
|
||||
expect(ReaderZoom.clamp(3.0), ReaderZoom.max);
|
||||
expect(ReaderZoom.clamp(0.66), closeTo(0.7, 0.001));
|
||||
expect(ReaderZoom.clamp(1.0), 1.0);
|
||||
});
|
||||
|
||||
test('percentLabel formats', () {
|
||||
expect(ReaderZoom.percentLabel(0.7), '70%');
|
||||
expect(ReaderZoom.percentLabel(1.0), '100%');
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user