Changeset 21143

Show
Ignore:
Timestamp:
07/01/08 18:43:28 (5 months ago)
Author:
moritz
Message:

[spec] moved numify.t to spec/, started fudging

Files:
1 moved

Legend:

Unmodified
Added
Removed
  • t/spec/S03-operators/numeric-context.t

    r20490 r21143  
    1111 
    1212is(+'1.9e3', 1900, "+'1.9e3' is 1900"); 
     13#?rakudo todo "Inf" 
    1314is(+'Inf', Inf, "+'Inf' is Inf"); 
    1415is(+'Info', 0, "+'Info' is 0"); 
    1516is(+'-Inf', -Inf, "+'-Inf' is -Inf"); 
     17#?rakudo todo "Inf" 
    1618is(+'-Info', 0, "+'-Info' is 0"); 
     19#?rakudo todo "NaN" 
    1720is(+'NaN', NaN, "+'NaN' is NaN"); 
    1821is(+'NaNa', 0, "+'NaNa' is 0"); 
    1922 
    20 # XXX Not sure whether the following tests are correct 
    21 is(+'Inf ',      Inf, "numification of strings with whitspace (1)"); 
    22 is(+'Inf o',       0, "numification of strings with whitspace (2)"); 
    23 is(+'NaN ',      NaN, "numification of strings with whitspace (3)"); 
    24 is(+'NaN a',       0, "numification of strings with whitspace (4)"); 
    25 is(+"Inf\t",     Inf, "numification of strings with whitspace (5)"); 
    26 is(+"Inf\to",      0, "numification of strings with whitspace (6)"); 
    27 is(+"NaN\t",     NaN, "numification of strings with whitspace (7)"); 
    28 is(+"NaN\ta",      0, "numification of strings with whitspace (8)"); 
    29 is(+"Inf\n",     Inf, "numification of strings with whitspace (9)"); 
    30 is(+"Inf\no",      0, "numification of strings with whitspace (10)"); 
    31 is(+"NaN\n",     NaN, "numification of strings with whitspace (11)"); 
    32 is(+"NaN\na",      0, "numification of strings with whitspace (12)"); 
    33 is(+"Inf\n\t ",  Inf, "numification of strings with whitspace (13)"); 
    34 is(+"Inf\n\t o",   0, "numification of strings with whitspace (14)"); 
    35 is(+"NaN\n\t ",  NaN, "numification of strings with whitspace (15)"); 
    36 is(+"NaN\n\t a",   0, "numification of strings with whitspace (16)"); 
    37 is(+"3 ",          3, "numification of strings with whitspace (17)"); 
     23#?rakudo skip 'Tests need specs first' 
     24{ 
     25    # XXX Not sure whether the following tests are correct 
     26    is(+'Inf ',      Inf, "numification of strings with whitspace (1)"); 
     27    is(+'Inf o',       0, "numification of strings with whitspace (2)"); 
     28    is(+'NaN ',      NaN, "numification of strings with whitspace (3)"); 
     29    is(+'NaN a',       0, "numification of strings with whitspace (4)"); 
     30    is(+"Inf\t",     Inf, "numification of strings with whitspace (5)"); 
     31    is(+"Inf\to",      0, "numification of strings with whitspace (6)"); 
     32    is(+"NaN\t",     NaN, "numification of strings with whitspace (7)"); 
     33    is(+"NaN\ta",      0, "numification of strings with whitspace (8)"); 
     34    is(+"Inf\n",     Inf, "numification of strings with whitspace (9)"); 
     35    is(+"Inf\no",      0, "numification of strings with whitspace (10)"); 
     36    is(+"NaN\n",     NaN, "numification of strings with whitspace (11)"); 
     37    is(+"NaN\na",      0, "numification of strings with whitspace (12)"); 
     38    is(+"Inf\n\t ",  Inf, "numification of strings with whitspace (13)"); 
     39    is(+"Inf\n\t o",   0, "numification of strings with whitspace (14)"); 
     40    is(+"NaN\n\t ",  NaN, "numification of strings with whitspace (15)"); 
     41    is(+"NaN\n\t a",   0, "numification of strings with whitspace (16)"); 
     42    is(+"3 ",          3, "numification of strings with whitspace (17)"); 
     43} 
    3844 
    3945is(+'aInf',  0, "+'aInf'  is 0");