Sha256: 35152f3b27fd0e103d31099323d9fec5089a8382691fe8307fecfb01cbc7133e
Contents?: true
Size: 344 Bytes
Versions: 2
Compression:
Stored size: 344 Bytes
Contents
require File.dirname(__FILE__)/'..'/'test_helper' class WordTest < Test::Unit::TestCase def test_simple_instantiation content = "foobar" test = Word.new(content) assert_equal(content, test) end def test_multiword_instantiation assert_raise(Word::FormatException) do Word.new("This has spaces.") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
odin-0.0.4 | test/unit/word_test.rb |
odin-0.1.0.alpha.1 | test/unit/word_test.rb |