--- /dev/null
+#!perl -T
+
+use strict;
+use warnings;
+
+use Test::Leaner tests => 4 * 8;
+
+my @num_tests = (
+ [ '1.0', '==', '1.0' ],
+ [ '1e0', '==', '1e0' ],
+ [ '1.0', '<=', '1.0' ],
+ [ '1.0', '>=', '1.0' ],
+ [ '1.0', '<=', '2.0' ],
+ [ '1.0', '<', '2.0' ],
+ [ '2.0', '>=', '1.0' ],
+ [ '2.0', '>', '1.0' ],
+);
+
+for my $t (@num_tests) {
+ my ($x, $op, $y) = @$t;
+ cmp_ok $x, $op, $y;
+ cmp_ok int($x), $op, $y;
+ cmp_ok $x, $op, int($y);
+ cmp_ok int($x), $op, int($y);
+}