D-Programming-Language/phobos — pull request #1023 by monarchdodra (2012-12-21 10:42:20+00:00)
Title: Minor tweaks in std.string

Very minor changes in std.string:

* `FormatError => FormatException`

Basically just because `FormatError` is deprecated. While it was used in "deprecated unittest", it also appeared in some "non-deprecated unittest". This means that `rdmd --main -unittest std/string.d` did not compile. Given that none of those tests where testing the *actual* `FormatError` (which is just an alias anyways), it had no reason to stay.

* Extra example in representation

Just 'cause "why not?". Technically, you don't need to call representation to do this, but I think it expresses much more visually and directly what we the intent is.

* Extra Unittest block in representation

Because we should *always* validate out examples.

* Refactored unittest of representation

Added a `foreach(Type; TypeTuple!(Tuple!(char , ubyte ), ... )` in there. Not a huge difference, but I think it is important for our code base to be as clean as possible. People read and learn from it, and judge us by the quality of the code in it.