/ Check-in [d41d4d73]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the ieee754.test module so that it works both on systems that report infinity as "inf" and as "Inf".
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d41d4d7396fba60895535f21c438f8c75e7b2097
User & Date: drh 2015-12-31 22:29:36
Context
2016-01-01
00:15
Remove unreachable branches from the new JSON aggregate functions. check-in: 6e30f8c6 user: drh tags: trunk
2015-12-31
22:29
Fix the ieee754.test module so that it works both on systems that report infinity as "inf" and as "Inf". check-in: d41d4d73 user: drh tags: trunk
19:06
In the shell, use utf8_printf() when any string formatting is present and raw_printf() otherwise. check-in: 8cf01fff user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test/ieee754.test.

39
40
41
42
43
44
45
46

47

48
49

50

51
52
53
54
55
56
    } "ieee754(-$rep)"
    do_test ieee754-100-$id-4 {
      db eval "SELECT ieee754(-$rep)==-$float;"
    } {1}
  }
}

do_execsql_test ieee754-110 {

  SELECT ieee754(1,1024), ieee754(4503599627370495,972);

} {Inf 1.79769313486232e+308}
do_execsql_test ieee754-111 {

  SELECT ieee754(-1,1024), ieee754(-4503599627370495,972);

} {-Inf -1.79769313486232e+308}
do_execsql_test ieee754-112 {
  SELECT ieee754(4503599627370495,973) is null;
} {1}

finish_test







|
>
|
>
|
|
>
|
>
|





39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
    } "ieee754(-$rep)"
    do_test ieee754-100-$id-4 {
      db eval "SELECT ieee754(-$rep)==-$float;"
    } {1}
  }
}

do_test ieee754-110 {
  string tolower [
    db eval {SELECT ieee754(1,1024), ieee754(4503599627370495,972);}
  ]
} {inf 1.79769313486232e+308}
do_test ieee754-111 {
  string tolower [
    db eval {SELECT ieee754(-1,1024), ieee754(-4503599627370495,972);}
  ]
} {-inf -1.79769313486232e+308}
do_execsql_test ieee754-112 {
  SELECT ieee754(4503599627370495,973) is null;
} {1}

finish_test