| OLD | NEW |
| 1 # 2013-05-28 | 1 # 2013-05-28 |
| 2 # | 2 # |
| 3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
| 4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
| 5 # | 5 # |
| 6 # May you do good and not evil. | 6 # May you do good and not evil. |
| 7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
| 8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
| 9 # | 9 # |
| 10 #*********************************************************************** | 10 #*********************************************************************** |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 } | 193 } |
| 194 } {1000000} | 194 } {1000000} |
| 195 foreach {in out} { | 195 foreach {in out} { |
| 196 0 0.0 | 196 0 0.0 |
| 197 100 9999990.0 | 197 100 9999990.0 |
| 198 50 2749999.5 | 198 50 2749999.5 |
| 199 10 99999.9 | 199 10 99999.9 |
| 200 } { | 200 } { |
| 201 do_test percentile-2.1.$in { | 201 do_test percentile-2.1.$in { |
| 202 execsql { | 202 execsql { |
| 203 SELECT percentile(x, $in) from t3; | 203 SELECT round(percentile(x, $in),1) from t3; |
| 204 } | 204 } |
| 205 } $out | 205 } $out |
| 206 } | 206 } |
| 207 } | 207 } |
| 208 | 208 |
| 209 finish_test | 209 finish_test |
| OLD | NEW |