Skip to content
Browse files

Added test for more data sets than colors.

  • Loading branch information...
1 parent 01ab61f commit 70e294f00af2b7a4da4da55a0fb493de1f423547 @topfunky topfunky committed Mar 4, 2009
Showing with 14 additions and 3 deletions.
  1. +14 −3 test/test_line.rb
View
17 test/test_line.rb
@@ -147,9 +147,20 @@ def test_line_large_values
#
# end
#
- # def test_request_too_many_colors
- #
- # end
+
+ def test_request_too_many_colors
+ g = Gruff::Line.new
+ g.title = "More Sets Than in Color Array"
+# g.theme = {} # Sets theme with only black and white
+ @datasets.each do |data|
+ g.data(data[0], data[1])
+ end
+ @datasets.each do |data|
+ g.data("#{data[0]}-B", data[1].map {|d| d + 20})
+ end
+ g.write("test/output/line_more_sets_than_colors.png")
+ end
+
#
# def test_add_data
#

0 comments on commit 70e294f

Please sign in to comment.
Something went wrong with that request. Please try again.