Add a test for the < and > commands together.
authorShlomi Fish <shlomif@shlomifish.org>
Wed, 12 Sep 2012 07:22:26 +0000 (10:22 +0300)
committerRicardo Signes <rjbs@cpan.org>
Mon, 12 Nov 2012 14:18:20 +0000 (09:18 -0500)
lib/perl5db.t

index 10b87ad..51b1cf0 100644 (file)
@@ -28,7 +28,7 @@ BEGIN {
     }
 }
 
-plan(73);
+plan(74);
 
 my $rc_filename = '.perldb';
 
@@ -1644,6 +1644,32 @@ package main;
     );
 }
 
+# Test the < and > commands together
+{
+    my $wrapper = DebugWrap->new(
+        {
+            cmds =>
+            [
+                q/$::lorem = 0;/,
+                q/< $::lorem += 10;/,
+                q/> print "\nLOREM=<$::lorem>\n"/,
+                q/b 7/,
+                q/b 5/,
+                'c',
+                'c',
+                'q',
+            ],
+            prog => '../lib/perl5db/t/disable-breakpoints-1',
+        }
+    );
+
+    $wrapper->output_like(qr#
+        ^LOREM=<10>\n
+        #msx,
+        q#Test < and > commands. #,
+    );
+}
+
 END {
     1 while unlink ($rc_filename, $out_fn);
 }