Sha256: d214c1911f0a1c35e1b78e8c62be9642392077df2ad622ac354f1882d6b34758

Contents?: true

Size: 965 Bytes

Versions: 15

Compression:

Stored size: 965 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:$
#

# loading helper routine for testing bioruby
require 'pathname'
load Pathname.new(File.join(File.dirname(__FILE__), ['..'] * 3,
                            'bioruby_test_helper.rb')).cleanpath.to_s

# libraries needed for the tests
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

15 entries across 15 versions & 1 rubygems

Version Path
bio-2.0.5 test/unit/bio/util/test_color_scheme.rb
bio-2.0.4 test/unit/bio/util/test_color_scheme.rb
bio-2.0.3 test/unit/bio/util/test_color_scheme.rb
bio-2.0.2 test/unit/bio/util/test_color_scheme.rb
bio-2.0.1 test/unit/bio/util/test_color_scheme.rb
bio-2.0.0 test/unit/bio/util/test_color_scheme.rb
bio-1.6.0.pre.20181210 test/unit/bio/util/test_color_scheme.rb
bio-1.5.2 test/unit/bio/util/test_color_scheme.rb
bio-1.5.1 test/unit/bio/util/test_color_scheme.rb
bio-1.5.0 test/unit/bio/util/test_color_scheme.rb
bio-1.4.3.0001 test/unit/bio/util/test_color_scheme.rb
bio-1.4.3 test/unit/bio/util/test_color_scheme.rb
bio-1.4.2 test/unit/bio/util/test_color_scheme.rb
bio-1.4.1 test/unit/bio/util/test_color_scheme.rb
bio-1.4.0 test/unit/bio/util/test_color_scheme.rb