Sha256: 23afdc54f75cc0709343a6bcfd985da975f6b3b71286d87ee8d9b8a54bd95e77
Contents?: true
Size: 953 Bytes
Versions: 18
Compression:
Stored size: 953 Bytes
Contents
# # test/unit/bio/util/test_color_scheme.rb - Unit test for Bio::ColorScheme # # Author:: Trevor Wennblom <mailto:trevor@corevx.com> # Copyright:: Copyright (c) 2005-2007 Midwinter Laboratories, LLC (http://midwinterlabs.com) # License:: The Ruby License # # $Id: test_color_scheme.rb,v 1.3 2007/04/05 23:35:44 trevor Exp $ # require 'pathname' libpath = Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 4 , 'lib')).cleanpath.to_s $:.unshift(libpath) unless $:.include?(libpath) require 'test/unit' require 'bio/util/color_scheme' module Bio #:nodoc: class TestColorScheme < Test::Unit::TestCase #:nodoc: def test_buried s = Bio::ColorScheme::Buried assert_equal('00DC22', s['A']) assert_equal('00BF3F', s[:c]) assert_equal(nil, s[nil]) assert_equal('FFFFFF', s['-']) assert_equal('FFFFFF', s[7]) assert_equal('FFFFFF', s['junk']) assert_equal('00CC32', s['t']) end end end
Version data entries
18 entries across 18 versions & 5 rubygems