From 92a72071fb3271d8b4383dd24dce5f455e41f372 Mon Sep 17 00:00:00 2001 From: aaron <462826@qq.com> Date: Mon, 17 Apr 2023 09:44:24 +0800 Subject: [PATCH] fix issue for multi-line script parser --- demo/t/1_simple.php | 33 +++++++++++++-------------------- demo/t/t.py | 7 +++++-- 2 files changed, 18 insertions(+), 22 deletions(-) diff --git a/demo/t/1_simple.php b/demo/t/1_simple.php index 2c4c19c7..f76a2d0e 100755 --- a/demo/t/1_simple.php +++ b/demo/t/1_simple.php @@ -1,26 +1,19 @@ #!/usr/bin/env php > expect 1 -step2 >> -step3 >> expect 3 - +steps + step 1.1 + step 1.2 >> + expect 1.2 line 1 + expect 1.2 line 2 + >> */ -checkStep1() || print("expect 1\n"); -print("pass\n"); -checkStep3() || print("expect 3\n"); - -function checkStep1(){} -function checkStep3(){} - -stdErr('it is stderr msg'); - -function stdErr($msg) { - fwrite(STDERR, "$msg\n"); -} +print(">>\n"); +print("expect 1.2 line 1\n"); +print("expect 1.2 line 2\n"); +print(">>\n"); \ No newline at end of file diff --git a/demo/t/t.py b/demo/t/t.py index 53ff0930..a7e4673b 100755 --- a/demo/t/t.py +++ b/demo/t/t.py @@ -6,6 +6,7 @@ timeout=0 cid=5016 pid=0 +Click on "New Submission" > "For Approval" >> "New Submission - For Approval" page is displayed Fill in the fields in metadata, Title, Priority, Classification and CC >> Metadata default: - Requester (current user) @@ -13,6 +14,8 @@ Fill in the fields in metadata, Title, Priority, Classification and CC >> >> ''' -print(">>\n"); +print('''"New Submission - For Approval" page is displayed''') + +print('>>') print('''Metadata default:\n- Requester (current user)\n- Designation (list user's current designation)''') -print(">>\n"); \ No newline at end of file +print('>>') \ No newline at end of file -- GitLab