mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
16 lines
346 B
Dart
16 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);
|
||
|
});
|
||
|
});
|
||
|
}
|