checks: test MathChecks
diff --git a/pkgs/checks/test/extensions/math_test.dart b/pkgs/checks/test/extensions/math_test.dart
new file mode 100644
index 0000000..a73e48b
--- /dev/null
+++ b/pkgs/checks/test/extensions/math_test.dart
@@ -0,0 +1,24 @@
+// Copyright (c) 2022, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+import 'package:checks/checks.dart';
+import 'package:checks/context.dart';
+import 'package:test/scaffolding.dart';
+
+import '../test_shared.dart';
+
+void main() {
+ group('NumChecks', () {
+ test('greater-than', () {
+ checkThat(42) > 7;
+ checkThat(softCheck<int>(42, (p0) => p0 > 50))
+ .isARejection(actual: '<42>', which: ['Is not greater than <50>']);
+ });
+ test('less-than', () {
+ checkThat(42) < 50;
+ checkThat(softCheck<int>(42, (p0) => p0 < 7))
+ .isARejection(actual: '<42>', which: ['Is not less than <7>']);
+ });
+ });
+}