REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.32 KB
Close
/opt/cloudlinux/alt-php72/root/usr/share/pear/test/Structures_LinkedList/tests/link_007.phpt
Text
Base64
--TEST-- link_007: Test many corner cases --FILE-- <?php $dir = dirname(__FILE__); require 'Structures/LinkedList/Double.php'; require 'LinkTester.php'; $xyy = new Structures_LinkedList_Double(); // prepend to an empty list corner case: 1 $xyy->prependNode($tester1); print "Current: {$xyy->current()->getNumb()}\n"; // prepend to a list with only one element: 21 $xyy->prependNode($tester2); print "Current: {$xyy->current()->getNumb()}\n"; // insert after tail node corner case: 213 $xyy->insertNode($tester3, $tester1); print "Current: {$xyy->current()->getNumb()}\n"; // insert before root node corner case: 4213 $xyy->insertNode($tester4, $tester2, true); print "Current: {$xyy->current()->getNumb()}\n"; // insert before tail node corner case: 42153 $xyy->insertNode($tester5, $tester3, true); print "Current: {$xyy->current()->getNumb()}\n"; // insert after root node corner case: 421653 $xyy->insertNode($tester6, $tester1); print "Current: {$xyy->current()->getNumb()}\n"; print "Foreach: "; foreach ($xyy as $node) { print $node->getNumb(); } print "\nWhile (in reverse): "; // test reverse iteration with while() $link = $xyy->end(); do { print $link->getNumb(); } while ($link = $xyy->previous()); ?> --EXPECT-- Current: 1 Current: 1 Current: 1 Current: 1 Current: 1 Current: 1 Foreach: 421653 While (in reverse): 356124
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 16
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
LinkTester.php
492 B
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link_001.phpt
987 B
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link_002.phpt
675 B
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link_003.phpt
1000 B
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link_004.phpt
544 B
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link_005.phpt
1.21 KB
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link_006.phpt
991 B
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
link_007.phpt
1.32 KB
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
SingleLinkTester.php
462 B
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single_link_001.phpt
1000 B
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single_link_002.phpt
688 B
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single_link_003.phpt
1013 B
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single_link_004.phpt
557 B
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single_link_005.phpt
1.22 KB
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single_link_006.phpt
1004 B
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
single_link_007.phpt
1.19 KB
lrw-r--r--
2021-12-02 08:33:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).