diff options
Diffstat (limited to 'dmagick/Color.d')
| -rw-r--r-- | dmagick/Color.d | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dmagick/Color.d b/dmagick/Color.d index 7c50595..c35b796 100644 --- a/dmagick/Color.d +++ b/dmagick/Color.d @@ -222,6 +222,12 @@ class Color return toString(); } + unittest + { + Color color = new Color("red"); + assert( color.name == "red" ); + } + static Quantum scaleDoubleToQuantum(double value) { return cast(Quantum)(value*QuantumRange); |
