From adb5bfb5602d69245284a1f994022b3e596efc65 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Sat, 13 Aug 2011 15:25:29 +0200 Subject: [PATCH] Add failing test. --- test/tests/Color.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/tests/Color.js b/test/tests/Color.js index 04417b24..2619a60b 100644 --- a/test/tests/Color.js +++ b/test/tests/Color.js @@ -196,4 +196,10 @@ test('Color#convert', function() { equals(function() { return converted.equals(color); }, true); +}); + +test('Saturation from black rgb', function() { + equals(function() { + return new RGBColor(0, 0, 0).saturation == 0; + }, true); }); \ No newline at end of file