Changeset 517
- Timestamp:
- 11/27/07 16:10:16 (1 year ago)
- Files:
-
- candidate/phobos/std/traits.d (modified) (1 diff)
- trunk/phobos/std/getopt.d (modified) (1 diff)
- trunk/phobos/std/metastrings.d (modified) (1 diff)
- trunk/phobos/std/stdio.d (modified) (6 diffs)
- trunk/phobos/std/traits.d (modified) (1 diff)
- trunk/phobos/unittest.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
candidate/phobos/std/traits.d
r516 r517 471 471 static assert (!isStaticArray!(int[char])); 472 472 static assert (!isStaticArray!(int[1][])); 473 static assert (isStaticArray!(invariant char[13u]));474 static assert (isStaticArray!(const(real)[1]));475 static assert (isStaticArray!(const(real)[1][1]));476 static assert (isStaticArray!(typeof("string literal")));477 static assert (isStaticArray!(void[0]));478 static assert (!isStaticArray!(int[int]));479 static assert (!isStaticArray!(int));473 static assert (isStaticArray!(invariant char[13u])); 474 static assert (isStaticArray!(const(real)[1])); 475 static assert (isStaticArray!(const(real)[1][1])); 476 static assert (isStaticArray!(typeof("string literal"))); 477 static assert (isStaticArray!(void[0])); 478 static assert (!isStaticArray!(int[int])); 479 static assert (!isStaticArray!(int)); 480 480 481 481 /** trunk/phobos/std/getopt.d
r514 r517 248 248 --------- 249 249 250 In the example above, "--foo", "--bar", "--FOo", "--bAr" etc. are recognized. The directive is active til the end of $(D_PARAM getopt), or until the converse directive $(D_PARAM case Sensitive) is encountered:250 In the example above, "--foo", "--bar", "--FOo", "--bAr" etc. are recognized. The directive is active til the end of $(D_PARAM getopt), or until the converse directive $(D_PARAM caseInsensitive) is encountered: 251 251 252 252 --------- trunk/phobos/std/metastrings.d
r515 r517 150 150 { 151 151 auto s = Format!("hel%slo", "world", -138, 'c', true); 152 // BUG 1616 filed: assert(s == "helworldlo-138ctrue" );152 // BUG 1616 filed: assert(s == "helworldlo-138ctrue", "[" ~ s ~ "]"); 153 153 } 154 154 trunk/phobos/std/stdio.d
r515 r517 244 244 FILE* f = fopen(file, "w"); 245 245 assert(f, getcwd()); 246 scope(exit) { std.file.remove(file); } 246 247 write(f, "Hello, ", "world number ", 42, "!"); 247 248 fclose(f) == 0 || assert(false); … … 275 276 FILE* f = fopen(file, "w"); 276 277 assert(f); 278 scope(exit) { std.file.remove(file); } 277 279 writeln(f, "Hello, ", "world number ", 42, "!"); 278 280 fclose(f) == 0 || assert(false); … … 367 369 auto f = fopen(file, "w"); 368 370 assert(f); 371 scope(exit) { std.file.remove(file); } 369 372 writef(f, "Hello, %s world number %s!", "nice", 42); 370 373 fclose(f) == 0 || assert(false); … … 394 397 FILE* f = fopen(file, "w"); 395 398 assert(f); 399 scope(exit) { std.file.remove(file); } 396 400 writefln(f, "Hello, %s world number %s!", "nice", 42); 397 401 fclose(f) == 0 || assert(false); … … 1059 1063 { 1060 1064 string file = "dmd-build-test.deleteme.txt"; 1065 scope(exit) { std.file.remove(file); } 1061 1066 alias TypeTuple!(string, wstring, dstring, 1062 1067 char[], wchar[], dchar[]) … … 1245 1250 { 1246 1251 string file = "dmd-build-test.deleteme.txt"; 1252 scope(exit) { std.file.remove(file); } 1247 1253 // test looping with an empty file 1248 1254 std.file.write(file, ""); trunk/phobos/std/traits.d
r515 r517 471 471 static assert (!isStaticArray!(int[char])); 472 472 static assert (!isStaticArray!(int[1][])); 473 static assert (isStaticArray!(invariant char[13u]));474 static assert (isStaticArray!(void[0]));475 static assert (!isStaticArray!(int[int]));476 static assert (!isStaticArray!(int));477 static assert (isStaticArray!(const(real)[1]));478 static assert (isStaticArray!(const(real)[1][1]));479 static assert (isStaticArray!(typeof("string literal")));473 static assert (isStaticArray!(invariant char[13u])); 474 static assert (isStaticArray!(const(real)[1])); 475 static assert (isStaticArray!(const(real)[1][1])); 476 static assert (isStaticArray!(typeof("string literal"))); 477 static assert (isStaticArray!(void[0])); 478 static assert (!isStaticArray!(int[int])); 479 static assert (!isStaticArray!(int)); 480 480 481 481 /** trunk/phobos/unittest.d
r465 r517 1 2 1 /* 3 2 * Copyright (C) 1999-2006 by Digital Mars, www.digitalmars.com … … 27 26 // Then, it prints out the arguments passed to main(). 28 27 29 import std.c.stdio; 30 import std.string; 31 import std.path; 32 import std.math; 33 import std.math2; 34 import std.outbuffer; 35 import std.ctype; 36 import std.regexp; 37 import std.random; 38 import std.date; 39 import std.dateparse; 40 import std.demangle; 41 import std.cstream; 42 import std.stream; 43 import std.utf; 44 import std.uri; 45 import std.zlib; 46 import std.md5; 47 import std.stdio; 48 import std.conv; 49 import std.boxer; 50 import std.bitarray; 51 import std.uni; 52 import std.file; 53 import std.signals; 54 import std.cpuid; 55 import std.socket; 28 import all_std_modules_generated; 56 29 57 30 int main(char[][] args)
