Sha256: 287d984e256bd69141c354bd13d436471243721298f7e9e9d5b55ddee1082c8f

Contents?: true

Size: 872 Bytes

Versions: 6

Compression:

Stored size: 872 Bytes

Contents

# Author::    Nicolas Desprès  <nicolas.despres@lrde.epita.fr>.
# Copyright:: Copyright (c) 2005 Uttk Team. All rights reserved.
# License::   LGPL
# $Id: /w/fey/uttk/trunk/test/unit/logger/severity_test.rb 21975 2006-02-19T22:24:11.182512Z pouillar  $


test_section __FILE__ do

module Uttk

  class Logger

    class SeverityTest < ::Test::Unit::TestCase

      def test_unshift
        assert_equal(Severity::DEBUG, Severity.lower)
        Severity.unshift('DEBUG1')
        assert_equal(Severity::DEBUG1, Severity.lower)
      end

      def test_push
        assert_equal(Severity::UNKNOWN, Severity.higher)
        Severity.push('UNKNOWN1')
        assert_equal(Severity::UNKNOWN1, Severity.higher)
      end

      def test_label
        assert_equal('WARN', Severity.label(3))
      end

    end # class SeverityTest

  end # class Logger

end # module Uttk

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
uttk-0.3.1.2 test/unit/logger/severity_test.rb
uttk-0.3.5.0 test/unit/logger/severity_test.rb
uttk-0.3.6.1 test/unit/logger/severity_test.rb
uttk-0.4.6.1 test/unit/logger/severity_test.rb
uttk-0.4.6.2 test/unit/logger/severity_test.rb
uttk-0.4.5.0 test/unit/logger/severity_test.rb