Changeset 422
- Timestamp:
- 10/15/07 17:08:42 (1 year ago)
- Files:
-
- candidate/phobos/std/stdio.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
candidate/phobos/std/stdio.d
r414 r422 409 409 { 410 410 // compatibility hack 411 return writef(std io, "", args, '\n');411 return writef(stdout, "", args, '\n'); 412 412 } 413 413 else … … 451 451 assert(stdout); 452 452 writefln("Hello, %s world number %s!", "nice", 42); 453 foreach (F ; TypeTuple!(ifloat, idouble, ireal)) 454 { 455 F a = 5i; 456 F b = a % 2; 457 writefln(b); 458 } 453 459 fclose(stdout) == 0 || assert(false); 454 assert(cast(char[]) std.file.read(file) == "Hello, nice world number 42!\n"); 460 auto read = cast(char[]) std.file.read(file); 461 assert(read == "Hello, nice world number 42!\n1\n1\n1\n", read); 455 462 } 456 463
