Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Changes to test script nan.test to work on symbian. (CVS 5718) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
0889b22a2949160c3f2d06beaa05a867 |
User & Date: | danielk1977 2008-09-18 11:30:13.000 |
Context
2008-09-18
| ||
13:49 | Update the version number to 3.6.3. (CVS 5719) (check-in: 419764b35c user: drh tags: trunk) | |
11:30 | Changes to test script nan.test to work on symbian. (CVS 5718) (check-in: 0889b22a29 user: danielk1977 tags: trunk) | |
11:18 | Changes to test script io.test to work on symbian. (CVS 5717) (check-in: 2b41c4959d user: danielk1977 tags: trunk) | |
Changes
Changes to test/nan.test.
︙ | ︙ | |||
14 15 16 17 18 19 20 | # Make sure IEEE floating point NaN values are handled properly. # SQLite should always convert NaN into NULL. # # Also verify that the decimal to IEEE754 binary conversion routines # correctly generate 0.0, +Inf, and -Inf as appropriate for numbers # out of range. # | | | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | # Make sure IEEE floating point NaN values are handled properly. # SQLite should always convert NaN into NULL. # # Also verify that the decimal to IEEE754 binary conversion routines # correctly generate 0.0, +Inf, and -Inf as appropriate for numbers # out of range. # # $Id: nan.test,v 1.5 2008/09/18 11:30:13 danielk1977 Exp $ # set testdir [file dirname $argv0] source $testdir/tester.tcl do_test nan-1.1.1 { db eval { |
︙ | ︙ | |||
255 256 257 258 259 260 261 | } {1234.5 real} do_test nan-4.11 { db eval {DELETE FROM t1} db eval "INSERT INTO t1 VALUES(-1234.5[string repeat 0 10000]12345)" db eval {SELECT x, typeof(x) FROM t1} } {-1234.5 real} do_test nan-4.12 { | < < < < < < | < < < < < < < > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 | } {1234.5 real} do_test nan-4.11 { db eval {DELETE FROM t1} db eval "INSERT INTO t1 VALUES(-1234.5[string repeat 0 10000]12345)" db eval {SELECT x, typeof(x) FROM t1} } {-1234.5 real} do_test nan-4.12 { db eval {DELETE FROM t1} set small [string repeat 0 10000].[string repeat 0 324][string repeat 9 10000] db eval "INSERT INTO t1 VALUES($small)" db eval {SELECT x, typeof(x) FROM t1} } {0.0 real} do_test nan-4.13 { db eval {DELETE FROM t1} set small \ -[string repeat 0 10000].[string repeat 0 324][string repeat 9 10000] db eval "INSERT INTO t1 VALUES($small)" db eval {SELECT x, typeof(x) FROM t1} } {0.0 real} # These tests test some really, really small floating point numbers. # if {$tcl_platform(platform) != "symbian"} { # These two are not run on symbian because tcl has trouble converting # the very small numbers back to text form (probably due to a difference # in the sprintf() implementation). # do_test nan-4.14 { db eval {DELETE FROM t1} set small \ [string repeat 0 10000].[string repeat 0 323][string repeat 9 10000] db eval "INSERT INTO t1 VALUES($small)" db eval {SELECT x, typeof(x) FROM t1} } {9.88131291682493e-324 real} do_test nan-4.15 { db eval {DELETE FROM t1} set small \ -[string repeat 0 10000].[string repeat 0 323][string repeat 9 10000] db eval "INSERT INTO t1 VALUES($small)" db eval {SELECT x, typeof(x) FROM t1} } {-9.88131291682493e-324 real} } do_test nan-4.16 { db eval {DELETE FROM t1} set small [string repeat 0 10000].[string repeat 0 323][string repeat 9 10000] db eval "INSERT INTO t1 VALUES($small)" db eval {SELECT CAST(x AS text), typeof(x) FROM t1} } {9.88131291682493e-324 real} do_test nan-4.17 { db eval {DELETE FROM t1} set small \ -[string repeat 0 10000].[string repeat 0 323][string repeat 9 10000] db eval "INSERT INTO t1 VALUES($small)" db eval {SELECT CAST(x AS text), typeof(x) FROM t1} } {-9.88131291682493e-324 real} do_test nan-4.20 { db eval {DELETE FROM t1} set big [string repeat 9 10000].0e-9000 db eval "INSERT INTO t1 VALUES($big)" db eval {SELECT x, typeof(x) FROM t1} } {{} null} finish_test |