diff options
author | Christian Schneider | 2025-02-18 16:39:05 +0100 |
---|---|---|
committer | Christian Schneider | 2025-02-18 16:39:05 +0100 |
commit | c6330b2766fec18784d6395b0bbafbe56a4c6197 (patch) | |
tree | 66aa27bf43dea8471a165560433d1db053d1ab59 /test | |
parent | 2a4e493468d5337e7cfd2b3d04f9bb0943b56775 (diff) | |
download | itools-c6330b2766fec18784d6395b0bbafbe56a4c6197.tar.gz itools-c6330b2766fec18784d6395b0bbafbe56a4c6197.tar.bz2 itools-c6330b2766fec18784d6395b0bbafbe56a4c6197.zip |
Cleanup round to make indentation style consistent across files
Diffstat (limited to 'test')
-rwxr-xr-x | test/it.t | 3 | ||||
-rwxr-xr-x | test/it_error.t | 9 |
2 files changed, 8 insertions, 4 deletions
@@ -16,7 +16,8 @@ function _match($regex, $string, $expect, $name, $p = []) { $GLOBALS['TEST_MORE_LEVEL'] = 1; $pass = is (it::match($regex, $string, $p), $expect, $name); - if (!$pass) { + if (!$pass) + { diag(" regex given: $regex" . ($p ? " " .D($p) : "")); diag(" regex converted: " . it::convertregex($regex)); } diff --git a/test/it_error.t b/test/it_error.t index 4d9e2ad..a45e312 100755 --- a/test/it_error.t +++ b/test/it_error.t @@ -8,8 +8,10 @@ $GLOBALS['debug_verboseerrors'] = 1; if ($opts['args'][0]) foo($opts['args'][0]); -else { - foreach (range(1, 12) as $testnum) { +else +{ + foreach (range(1, 12) as $testnum) + { $errlines = explode("\n", it::exec('{cmd} {testnum} |& cat', ['cmd' => $argv[0], 'testnum' => $testnum])); $expect = $expect = it::match('Expect: (.*)', $errlines[0]); $errbody = join("\n", array_slice($errlines, 1)); @@ -34,7 +36,8 @@ function foo($testno) { $a = "hi"; - switch ($testno) { + switch ($testno) + { case 1: expect(); echo "Trace: " . it_debug::backtrace() . "\n\n"; exit; case 2: expect(); echo "Stack:\n" . it_debug::backtrace(['format' => "medium"]); exit; |