diff options
author | Kevin Clark <kclark@apache.org> | 2009-03-04 21:42:46 +0000 |
---|---|---|
committer | Kevin Clark <kclark@apache.org> | 2009-03-04 21:42:46 +0000 |
commit | af99b5c398bddbc70136e123135a912a3a342741 (patch) | |
tree | a1bbbc035399900233af6cc65a5434c872d25650 /test/rb | |
parent | c289608e1928cc8c6db482aafe7262a428b6f32e (diff) | |
download | thrift-af99b5c398bddbc70136e123135a912a3a342741.tar.gz |
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
Diffstat (limited to 'test/rb')
-rw-r--r-- | test/rb/generation/test_enum.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/rb/generation/test_enum.rb b/test/rb/generation/test_enum.rb new file mode 100644 index 000000000..75ed42bc0 --- /dev/null +++ b/test/rb/generation/test_enum.rb @@ -0,0 +1,9 @@ +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
\ No newline at end of file |