aboutsummaryrefslogtreecommitdiffstats
path: root/testing/test.pl
diff options
context:
space:
mode:
Diffstat (limited to 'testing/test.pl')
-rwxr-xr-xtesting/test.pl12
1 files changed, 9 insertions, 3 deletions
diff --git a/testing/test.pl b/testing/test.pl
index 3940116..d505758 100755
--- a/testing/test.pl
+++ b/testing/test.pl
@@ -26,14 +26,20 @@ for (1..10) {
$test->add_input_sequence($_);
$test->add_delay(0.2);
}
+$test->add_evaluation_function(sub { 1 }, 'this should succeed');
+$test->add_pattern_match(qr/2345/, 'prompt', 'prompt contains numbers');
#$test->add_input_sequence("This is\x0acursor movement\x0a");
# $test->add_delay(5);
- $test->add_input_sequence("\n");
+$test->add_input_sequence("\n");
- $test->add_input_sequence("/clear\n");
-# $test->add_expected_output("Hello");
+$test->add_input_sequence("/clear\n");
+my $test2 = $tester->new_test("Test2");
+$test2->add_input_sequence("hello");
+$test2->add_delay(5);
+$test2->add_pattern_match(qr/hello/, 'prompt', 'hello');
+
$tester->run;