thrift/test/rb/generation/test_enum.rb
Kevin Clark af99b5c398 THRIFT-352. rb: Implicit enums should be valid values
Author: Gary Tsang

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@750171 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04 21:42:46 +00:00

9 lines
331 B
Ruby

require File.join(File.dirname(__FILE__), '../test_helper')
require 'ThriftTest'
class TestEnumGeneration < Test::Unit::TestCase
include Thrift::Test
def test_enum_valid_values
assert_equal(Numberz::VALID_VALUES, Set.new([Numberz::ONE, Numberz::TWO, Numberz::THREE, Numberz::FIVE, Numberz::SIX, Numberz::EIGHT]))
end
end