/vendor/plugins/rtf-0.1.0/test/StyleTest.rb

http://rorptm.googlecode.com/ · Ruby · 22 lines · 15 code · 5 blank · 2 comment · 6 complexity · f6571b53e0537959b72db1f03587fa5b MD5 · raw file

  1. #!/usr/bin/env ruby
  2. require 'rubygems'
  3. require 'test/unit'
  4. require 'rtf'
  5. include RTF
  6. # Information class unit test class.
  7. class StyleTest < Test::Unit::TestCase
  8. def test_basics
  9. style = Style.new
  10. assert(style.is_character_style? == false)
  11. assert(style.is_document_style? == false)
  12. assert(style.is_paragraph_style? == false)
  13. assert(style.is_table_style? == false)
  14. assert(style.prefix(nil, nil) == nil)
  15. assert(style.suffix(nil, nil) == nil)
  16. end
  17. end