aboutsummaryrefslogtreecommitdiffstats
path: root/testing/test3.pl
diff options
context:
space:
mode:
Diffstat (limited to 'testing/test3.pl')
-rwxr-xr-xtesting/test3.pl9
1 files changed, 7 insertions, 2 deletions
diff --git a/testing/test3.pl b/testing/test3.pl
index 1c783ac..57be5ed 100755
--- a/testing/test3.pl
+++ b/testing/test3.pl
@@ -20,11 +20,13 @@ my $test = $tester->new_test('test1');
$test->add_input_sequence("/echo Hello cats\n");
$test->add_delay(1);
$test->add_input_sequence("/echo Hello Again\n");
-$test->add_input_sequence("this is a long test");
+$test->add_input_sequence("this is a lang test");
$test->add_pattern_match(qw/long/, 'prompt', 'prompt contains hello');
+$test->add_pattern_match(qw/longfdajkfd/, 'prompt', 'prompt contains hello');
+
my $test2 = $tester->new_test('test2');
-$test2->add_delay(1);
+$test2->add_delay(2);
$test2->add_input_sequence("\x01");
$test2->add_delay(0.1);
$test2->add_input_sequence("\x0b");
@@ -33,6 +35,9 @@ $test2->add_input_sequence("/clear\n");
$test2->add_delay(0.1);
$test2->add_input_sequence("/echo moo\n");
+my $quit = $tester->new_test('quit');
+$quit->add_input_sequence("/quit\n");
+
# for (1..10) {
# $test->add_input_sequence("\xff");
# $test->add_delay(0.1);