package com.exubero.words;

import org.junit.Test;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.collection.IsIterableContainingInAnyOrder.containsInAnyOrder;

public class TrieTest {
    @Test
    public void canAddAWord() {
        Trie trie = new Trie();

        trie.addWord("word");

        assertThat(trie.words(), containsInAnyOrder("word"));
    }
}

@@ -158,19 +158,16 @@
 ainingIn
-Any
 Order.co
@@ -172,26 +172,16 @@
 contains
-InAnyOrder
 ;%0A%0Apubli
@@ -236,16 +236,17 @@
 AddAWord
+s
 () %7B%0A   
@@ -299,18 +299,108 @@
 Word(%22wo
-rd
+o%22);%0A        trie.addWord(%22wood%22);%0A        trie.addWord(%22word%22);%0A        trie.addWord(%22words
 %22);%0A%0A   
@@ -441,24 +441,38 @@
 ains
-InAnyOrder(
+(%22woo%22, %22wood%22, %22word%22, 
 %22word
+s
 %22));

Expand test