summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristian Schneider2025-02-18 16:39:05 +0100
committerChristian Schneider2025-02-18 16:39:05 +0100
commitc6330b2766fec18784d6395b0bbafbe56a4c6197 (patch)
tree66aa27bf43dea8471a165560433d1db053d1ab59 /test
parent2a4e493468d5337e7cfd2b3d04f9bb0943b56775 (diff)
downloaditools-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-xtest/it.t3
-rwxr-xr-xtest/it_error.t9
2 files changed, 8 insertions, 4 deletions
diff --git a/test/it.t b/test/it.t
index 992a81f..cee4fa6 100755
--- a/test/it.t
+++ b/test/it.t
@@ -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;