class TestUnitAttribute::TestStack

Public Class Methods

suite() click to toggle source
# File test-unit-3.3.4/test/test-attribute.rb, line 4
def suite
  Test::Unit::TestSuite.new(name)
end

Public Instance Methods

setup() click to toggle source
# File test-unit-3.3.4/test/test-attribute.rb, line 31
def setup
  @stack = Stack.new
end
test_bug_1234() click to toggle source
# File test-unit-3.3.4/test/test-attribute.rb, line 43
def test_bug_1234
  assert_equal(0, @stack.size)
end
test_no_attributes() click to toggle source
# File test-unit-3.3.4/test/test-attribute.rb, line 47
def test_no_attributes
  assert(@stack.empty?)
  @stack.push(1)
  assert(!@stack.empty?)
  assert_equal(1, @stack.size)
end
test_peek() click to toggle source
# File test-unit-3.3.4/test/test-attribute.rb, line 36
def test_peek
  @stack.push(1)
  @stack.push(2)
  assert_equal(2, @stack.peek)
end