summaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/word_list.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/word_list.rb b/test/functional/word_list.rb
index 4399c6a..04f4a02 100644
--- a/test/functional/word_list.rb
+++ b/test/functional/word_list.rb
@@ -67,4 +67,13 @@ class WordListTest < Test::Unit::TestCase
assert_equal :reserved, list['FooBar']
end
+ def test_dup
+ list = WordList.new(:ident).add(['foobar'], :reserved)
+ assert_equal :reserved, list['foobar']
+ list2 = list.dup
+ list2.add(%w[foobar], :keyword)
+ assert_equal :keyword, list2['foobar']
+ assert_equal :reserved, list['foobar']
+ end
+
end \ No newline at end of file