Lines Matching refs:expected
51 function test_format($link, $format, $from, $order_by, $expected, $offset) {
87 if (!is_array($expected)) {
104 if ($result !== $expected) {
107 gettype($expected), $expected,
131 if (!empty($expected))
132 reset($expected);
133 while ((list($k, $v) = each($expected)) && mysqli_stmt_fetch($stmt)) {
134 if (!empty($expected)) {
161 $expected = create_table($link, 'FLOAT', -10000, 10000, $engine, 90);
162 foreach ($expected as $k => $v)
163 $expected[$k] = number_format(round($v), 0, '.', ',');
166 $expected = create_table($link, 'FLOAT', -10000, 10000, $engine, 110);
167 foreach ($expected as $k => $v)
168 $expected[$k] = number_format(round($v), 0, '.', ',');
169 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 120);
171 $expected = create_table($link, 'FLOAT UNSIGNED', 0, 10000, $engine, 130);
172 foreach ($expected as $k => $v)
173 $expected[$k] = number_format(round($v), 0, '.', ',');
174 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 140);
176 $expected = create_table($link, 'DECIMAL(5,0)', -1000, 1000, $engine, 150);
177 foreach ($expected as $k => $v)
178 $expected[$k] = number_format(round($v), 0, '.', ',');
179 test_format($link, 'id AS order_by_col, FORMAT(col1, 0)', 'test', 'id', $expected, 160);