Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Changeset 1542

Show
Ignore:
Timestamp:
05/23/10 02:07:56 (15 years ago)
Author:
SHOO
Message:

Mark deprecated to unittest

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/phobos/std/date.d

    r1513 r1542  
    7979    ticksPerHour   = ticksPerMinute * 60, 
    8080    ticksPerDay    = ticksPerHour   * 24, 
    8181} 
    8282 
    8383deprecated alias ticksPerSecond TicksPerSecond; 
    8484deprecated alias ticksPerMs TicksPerMs; 
    8585deprecated alias ticksPerMinute TicksPerMinute; 
    8686deprecated alias ticksPerHour TicksPerHour; 
    8787deprecated alias ticksPerDay TicksPerDay; 
    8888 
     89deprecated 
    8990unittest 
    9091{ 
    9192    assert(ticksPerSecond == TicksPerSecond); 
    9293} 
    9394 
    9495__gshared d_time localTZA = 0; 
    9596 
    9697private immutable char[] daystr = "SunMonTueWedThuFriSat"; 
    9798private immutable char[] monstr = "JanFebMarAprMayJunJulAugSepOctNovDec"; 
    9899 
  • trunk/phobos/std/random.d

    r1501 r1542  
    11541154            s = core.sys.posix.sys.time.time(null); 
    11551155        } 
    11561156        else 
    11571157        { 
    11581158            s = cast(ulong)((cast(long)tv.tv_sec << 32) + tv.tv_usec); 
    11591159        } 
    11601160    } 
    11611161    //rand_seed(cast(uint) s, cast(uint)(s >> 32)); 
    11621162} 
    11631163 
    1164  
     1164deprecated 
    11651165unittest 
    11661166{ 
    11671167    static uint results[10] = 
    11681168    [ 
    11691169        0x8c0188cb, 
    11701170        0xb161200c, 
    11711171        0xfc904ac5, 
    11721172        0x2702e049, 
    11731173        0x9705a923, 
    11741174        0x1c139d89, 
  • trunk/phobos/std/string.d

    r1500 r1542  
    40444044deprecated int find(in char[] s, dchar c) 
    40454045{ 
    40464046    return indexOf(s, c, CaseSensitive.yes); 
    40474047} 
    40484048 
    40494049deprecated int find(in char[] str, in char[] sub) 
    40504050{ 
    40514051    return indexOf(str, sub, CaseSensitive.yes); 
    40524052} 
    40534053 
     4054deprecated 
    40544055unittest 
    40554056{ 
    40564057    string a = "abc"; 
    40574058    string b = "bc"; 
    40584059    assert(find(a, b) == 1); 
    40594060} 
    40604061 
    40614062deprecated int ifind(in char[] s, dchar c) 
    40624063{ 
    40634064    return indexOf(s, c, CaseSensitive.no);