Skip to content

Commit 3782a36

Browse files
committed
Removed redundant test cases
1 parent 1872201 commit 3782a36

File tree

3 files changed

+45
-123
lines changed

3 files changed

+45
-123
lines changed

ext/standard/tests/math/pow_variation1.phpt

Lines changed: 15 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -45,37 +45,29 @@ $inputs = [
4545

4646
// null data
4747
/*11*/ null,
48-
null,
4948

5049
// boolean data
51-
/*13*/ true,
52-
false,
53-
true,
50+
/*12*/ true,
5451
false,
5552

5653
// empty data
57-
/*17*/ "",
58-
"",
54+
/*14*/ "",
5955
[],
6056

6157
// string data
62-
/*20*/ "abcxyz",
63-
"abcxyz",
58+
/*16*/ "abcxyz",
6459
$heredoc,
6560
"5.5",
6661
"2",
6762

6863
// object data
69-
/*25*/ new classA(),
64+
/*20*/ new classA(),
7065

7166
// undefined data
72-
/*26*/ @$undefined_var,
73-
74-
// unset data
75-
/*27*/ @$unset_var,
67+
/*21*/ @$undefined_var,
7668

7769
// resource variable
78-
/*28*/ $fp,
70+
/*22*/ $fp,
7971
];
8072

8173
// loop through each element of $inputs to check the behaviour of pow()
@@ -129,52 +121,34 @@ float(0.125)
129121
int(0)
130122

131123
-- Iteration 12 --
132-
int(0)
124+
int(1)
133125

134126
-- Iteration 13 --
135-
int(1)
127+
int(0)
136128

137129
-- Iteration 14 --
138-
int(0)
130+
Unsupported operand types: string ** int
139131

140132
-- Iteration 15 --
141-
int(1)
133+
Unsupported operand types: array ** int
142134

143135
-- Iteration 16 --
144-
int(0)
136+
Unsupported operand types: string ** int
145137

146138
-- Iteration 17 --
147139
Unsupported operand types: string ** int
148140

149141
-- Iteration 18 --
150-
Unsupported operand types: string ** int
151-
152-
-- Iteration 19 --
153-
Unsupported operand types: array ** int
154-
155-
-- Iteration 20 --
156-
Unsupported operand types: string ** int
157-
158-
-- Iteration 21 --
159-
Unsupported operand types: string ** int
160-
161-
-- Iteration 22 --
162-
Unsupported operand types: string ** int
163-
164-
-- Iteration 23 --
165142
float(15532029.564086)
166143

167-
-- Iteration 24 --
144+
-- Iteration 19 --
168145
float(412.09)
169146

170-
-- Iteration 25 --
147+
-- Iteration 20 --
171148
Unsupported operand types: float ** classA
172149

173-
-- Iteration 26 --
174-
float(1)
175-
176-
-- Iteration 27 --
150+
-- Iteration 21 --
177151
float(1)
178152

179-
-- Iteration 28 --
153+
-- Iteration 22 --
180154
Unsupported operand types: float ** resource

ext/standard/tests/math/pow_variation1_64bit.phpt

Lines changed: 15 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -45,37 +45,29 @@ $inputs = [
4545

4646
// null data
4747
/*11*/ null,
48-
null,
4948

5049
// boolean data
51-
/*13*/ true,
52-
false,
53-
true,
50+
/*12*/ true,
5451
false,
5552

5653
// empty data
57-
/*17*/ "",
58-
"",
54+
/*14*/ "",
5955
[],
6056

6157
// string data
62-
/*20*/ "abcxyz",
63-
"abcxyz",
58+
/*16*/ "abcxyz",
6459
$heredoc,
6560
"10.5",
6661
"2",
6762

6863
// object data
69-
/*25*/ new classA(),
64+
/*20*/ new classA(),
7065

7166
// undefined data
72-
/*26*/ @$undefined_var,
73-
74-
// unset data
75-
/*27*/ @$unset_var,
67+
/*21*/ @$undefined_var,
7668

7769
// resource variable
78-
/*28*/ $fp,
70+
/*22*/ $fp,
7971
];
8072

8173
// loop through each element of $inputs to check the behaviour of pow()
@@ -128,52 +120,34 @@ float(0.125)
128120
int(0)
129121

130122
-- Iteration 12 --
131-
int(0)
123+
int(1)
132124

133125
-- Iteration 13 --
134-
int(1)
126+
int(0)
135127

136128
-- Iteration 14 --
137-
int(0)
129+
Unsupported operand types: string ** int
138130

139131
-- Iteration 15 --
140-
int(1)
132+
Unsupported operand types: array ** int
141133

142134
-- Iteration 16 --
143-
int(0)
135+
Unsupported operand types: string ** int
144136

145137
-- Iteration 17 --
146138
Unsupported operand types: string ** int
147139

148140
-- Iteration 18 --
149-
Unsupported operand types: string ** int
150-
151-
-- Iteration 19 --
152-
Unsupported operand types: array ** int
153-
154-
-- Iteration 20 --
155-
Unsupported operand types: string ** int
156-
157-
-- Iteration 21 --
158-
Unsupported operand types: string ** int
159-
160-
-- Iteration 22 --
161-
Unsupported operand types: string ** int
162-
163-
-- Iteration 23 --
164141
float(1157.625)
165142

166-
-- Iteration 24 --
143+
-- Iteration 19 --
167144
int(8)
168145

169-
-- Iteration 25 --
146+
-- Iteration 20 --
170147
Unsupported operand types: classA ** int
171148

172-
-- Iteration 26 --
173-
int(0)
174-
175-
-- Iteration 27 --
149+
-- Iteration 21 --
176150
int(0)
177151

178-
-- Iteration 28 --
152+
-- Iteration 22 --
179153
Unsupported operand types: resource ** int

ext/standard/tests/math/pow_variation2.phpt

Lines changed: 15 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -41,37 +41,29 @@ $inputs = [
4141

4242
// null data
4343
/*11*/ null,
44-
null,
4544

4645
// boolean data
47-
/*13*/ true,
48-
false,
49-
true,
46+
/*12*/ true,
5047
false,
5148

5249
// empty data
53-
/*17*/ "",
54-
"",
50+
/*14*/ "",
5551
[],
5652

5753
// string data
58-
/*20*/ "abcxyz",
59-
"abcxyz",
54+
/*16*/ "abcxyz",
6055
$heredoc,
6156
"5.5",
6257
"2",
6358

6459
// object data
65-
/*25*/ new classA(),
60+
/*20*/ new classA(),
6661

6762
// undefined data
68-
/*26*/ @$undefined_var,
69-
70-
// unset data
71-
/*27*/ @$unset_var,
63+
/*21*/ @$undefined_var,
7264

7365
// resource variable
74-
/*28*/ $fp,
66+
/*22*/ $fp,
7567
];
7668

7769
// loop through each element of $inputs to check the behaviour of pow()
@@ -124,52 +116,34 @@ float(4.5055521304275)
124116
float(1)
125117

126118
-- Iteration 12 --
127-
float(1)
119+
float(20.3)
128120

129121
-- Iteration 13 --
130-
float(20.3)
122+
float(1)
131123

132124
-- Iteration 14 --
133-
float(1)
125+
Unsupported operand types: float ** string
134126

135127
-- Iteration 15 --
136-
float(20.3)
128+
Unsupported operand types: float ** array
137129

138130
-- Iteration 16 --
139-
float(1)
131+
Unsupported operand types: float ** string
140132

141133
-- Iteration 17 --
142134
Unsupported operand types: float ** string
143135

144136
-- Iteration 18 --
145-
Unsupported operand types: float ** string
146-
147-
-- Iteration 19 --
148-
Unsupported operand types: float ** array
149-
150-
-- Iteration 20 --
151-
Unsupported operand types: float ** string
152-
153-
-- Iteration 21 --
154-
Unsupported operand types: float ** string
155-
156-
-- Iteration 22 --
157-
Unsupported operand types: float ** string
158-
159-
-- Iteration 23 --
160137
float(15532029.564086)
161138

162-
-- Iteration 24 --
139+
-- Iteration 19 --
163140
float(412.09)
164141

165-
-- Iteration 25 --
142+
-- Iteration 20 --
166143
Unsupported operand types: float ** classA
167144

168-
-- Iteration 26 --
169-
float(1)
170-
171-
-- Iteration 27 --
145+
-- Iteration 21 --
172146
float(1)
173147

174-
-- Iteration 28 --
148+
-- Iteration 22 --
175149
Unsupported operand types: float ** resource

0 commit comments

Comments
 (0)