generated_code_test.rb 586 B

1234567891011121314151617
  1. #!/usr/bin/ruby
  2. # generated_code.rb is in the same directory as this test.
  3. $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)))
  4. require 'generated_code'
  5. require 'test/unit'
  6. class GeneratedCodeTest < Test::Unit::TestCase
  7. def test_generated_msg
  8. # just test that we can instantiate the message. The purpose of this test
  9. # is to ensure that the output of the code generator is valid Ruby and
  10. # successfully creates message definitions and classes, not to test every
  11. # aspect of the extension (basic.rb is for that).
  12. m = A::B::C::TestMessage.new()
  13. end
  14. end