summaryrefslogtreecommitdiff
path: root/t/test-testresult.t
blob: 6e8be4b624afa5a7c659b7871a9816324f07a282 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/ruby -Ilib/ -I../lib/


require 'test/unit'

require 'custodian/testfactory'


class TestTestResult < Test::Unit::TestCase

  #
  # Create the test suite environment: NOP.
  #
  def setup
  end

  #
  # Destroy the test suite environment: NOP.
  #
  def teardown
  end


  #
  #  Test the passed-symbol
  #
  def test_test_passed
    f = Custodian::TestResult::TEST_PASSED
    assert_equal(Custodian::TestResult.to_str(f), 'TEST_PASSED')
    assert_equal(f, 2)
  end


  #
  #  Test the failed-symbol
  #
  def test_test_failed
    f = Custodian::TestResult::TEST_FAILED
    assert_equal(Custodian::TestResult.to_str(f), 'TEST_FAILED')
    assert_equal(f, 4)
  end

  #
  #  Test the skipped symbol
  #
  def test_test_skipped
    f = Custodian::TestResult::TEST_SKIPPED
    assert_equal(Custodian::TestResult.to_str(f), 'TEST_SKIPPED')
    assert_equal(f, 8)
  end

end