repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
import zend standard tests
[hiphop-php.git]
/
hphp
/
test
/
zend
/
good
/
ext-standard-array
/
array_splice_basic.php.expectf
blob
3e12012fab1225d65cfc58fc8b152d706da5af86
1
*** Testing array_splice() basic operations ***
2
test truncation
3
array(2) {
4
[0]=>
5
string(4) "blue"
6
[1]=>
7
string(6) "yellow"
8
}
9
array(2) {
10
[0]=>
11
string(3) "red"
12
[1]=>
13
string(5) "green"
14
}
15
test removing entries from the middle
16
array(2) {
17
[0]=>
18
string(5) "green"
19
[1]=>
20
string(4) "blue"
21
}
22
array(2) {
23
[0]=>
24
string(3) "red"
25
[1]=>
26
string(6) "yellow"
27
}
28
test substitution at end
29
array(3) {
30
[0]=>
31
string(5) "green"
32
[1]=>
33
string(4) "blue"
34
[2]=>
35
string(6) "yellow"
36
}
37
array(2) {
38
[0]=>
39
string(3) "red"
40
[1]=>
41
string(6) "orange"
42
}
43
array(1) {
44
[0]=>
45
string(6) "yellow"
46
}
47
array(5) {
48
[0]=>
49
string(3) "red"
50
[1]=>
51
string(5) "green"
52
[2]=>
53
string(4) "blue"
54
[3]=>
55
string(5) "black"
56
[4]=>
57
string(6) "maroon"
58
}
59
test insertion
60
array(0) {
61
}
62
array(5) {
63
[0]=>
64
string(3) "red"
65
[1]=>
66
string(5) "green"
67
[2]=>
68
string(4) "blue"
69
[3]=>
70
string(6) "purple"
71
[4]=>
72
string(6) "yellow"
73
}