nc-photos/app/test/math_util_test.dart
2022-08-20 19:11:10 +08:00

15 lines
346 B
Dart

import 'dart:math' as math;
import 'package:nc_photos/math_util.dart' as math_util;
import 'package:test/test.dart';
void main() {
group("math_util", () {
test("degToRad", () {
expect(math_util.degToRad(90), closeTo(1.570796, 1e-6));
});
test("radToDeg", () {
expect(math_util.radToDeg(math.pi), 180);
});
});
}