Changeset 11

Show
Ignore:
Timestamp:
10/15/08 17:18:00 (4 years ago)
Author:
xammy
Message:

more strict type in unittest

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/current/meta/String.d

    r8 r11  
    186186    static assert (chomp ("abcxx", 'x') == "abc"); 
    187187    static assert (chomp ("abcxy", 'x') == "abcxy"); 
    188     static assert (repeat ("abc", 3) == "abcabcabc"); 
     188    static assert (repeat ("abc", 3u) == "abcabcabc"); 
    189189    static assert (startsWith ("abc", "ab")); 
    190190    static assert (!startsWith ("abc", "bc")); 
  • trunk/meta/Demangle.d

    r9 r11  
    5555/// Inner class for the demangling magic. 
    5656 
    57 class Inner (alias A); 
     57template Inner (alias A) 
     58
     59    class Inner { } 
     60
    5861 
    5962/// Outer class for the demangling magic. 
  • trunk/meta/String.d

    r8 r11  
    186186    static assert (chomp ("abcxx", 'x') == "abc"); 
    187187    static assert (chomp ("abcxy", 'x') == "abcxy"); 
    188     static assert (repeat ("abc", 3) == "abcabcabc"); 
     188    static assert (repeat ("abc", 3u) == "abcabcabc"); 
    189189    static assert (startsWith ("abc", "ab")); 
    190190    static assert (!startsWith ("abc", "bc"));