Skip to content

Commit

Permalink
Remove trailing spaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Aug 23, 2011
1 parent 8ff9edf commit 78cd0cc
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions std/conv.d
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ unittest
}

/**
$(RED Scheduled for deprecation in January 2012. Please use
$(RED Scheduled for deprecation in January 2012. Please use
method $(D opCast) instead.)
Object-_to-non-object conversions look for a method "to" of the source
Expand Down Expand Up @@ -488,9 +488,9 @@ unittest
}

Object oc = new C();
C a2 = to!C(oc); // == new C(a)
C a2 = to!C(oc); // == new C(a)
// Construction conversion overrides down-casting conversion
assert(a2 != a); //
assert(a2 != a); //
}

/**
Expand Down Expand Up @@ -1881,6 +1881,14 @@ Lerr:
return 0;
}

unittest
{
debug(conv) scope(success) writeln("unittest @", __FILE__, ":", __LINE__,
" succeeded.");
string s = "123";
auto a = parse!int(s);
}

unittest
{
debug(conv) scope(success) writeln("unittest @", __FILE__, ":", __LINE__, " succeeded.");
Expand Down Expand Up @@ -1938,7 +1946,6 @@ unittest
assert(to!E("b"w) == E.b);
assert(to!E("c"d) == E.c);


assert(to!F("x"c) == F.x);
assert(to!F("y"w) == F.y);
assert(to!F("z"d) == F.z);
Expand Down Expand Up @@ -2324,14 +2331,6 @@ unittest
assert(x == 0.0);
}

unittest
{
debug(conv) scope(success) writeln("unittest @", __FILE__, ":", __LINE__,
" succeeded.");
string s = "123";
auto a = parse!int(s);
}

/**
Parsing one character off a string returns the character and bumps the
string up one position.
Expand Down

0 comments on commit 78cd0cc

Please sign in to comment.