/**
 * Copyright 2016
 * Language Technology Lab
 * University of Duisburg-Essen
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses/.
 */
package de.unidue.ltl.flextag.examples;

import static org.junit.Assert.*;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

import org.junit.Before;
import org.junit.Test;

public class ExampleUseModelTest
{
    Set<String> tags = new HashSet<>();
    
    @Before
    public void setup(){
        tags.add("IN");
        tags.add("VBG");
        tags.add("PRP");
        tags.add("RB");
        tags.add("NN");
        tags.add("NNP");
        tags.add(".");
        tags.add(",");
    }
    
    @Test
    public void runExample()
        throws Exception
    {
        List<String> t = new ExampleUseModel().run();
        assertEquals(5, t.size());
        assertTrue(tags.contains(t.get(0)));
        assertTrue(tags.contains(t.get(1)));
        assertTrue(tags.contains(t.get(2)));
        assertTrue(tags.contains(t.get(3)));
        assertTrue(tags.contains(t.get(4)));
    }

}

@@ -1155,24 +1155,49 @@
 .add(%22NN%22);%0A
+        tags.add(%22NNS%22);%0A
         tags

test fix