/*
 *  Copyright (C) 2011-2012 The Animo Project
 *  http://animotron.org
 *  	
 *  This file is part of Animotron.
 *  
 *  Animotron is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Affero General Public License as 
 *  published by the Free Software Foundation, either version 3 of 
 *  the License, or (at your option) any later version.
 *  
 *  Animotron 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 Affero General Public License for more details.
 *  
 *  You should have received a copy of 
 *  the GNU Affero General Public License along with Animotron.  
 *  If not, see <http://www.gnu.org/licenses/>.
 */
package org.animotron.statement.operator;

import org.animotron.ATest;
import org.junit.Test;

/**
 * @author <a href="mailto:shabanovd@gmail.com">Dmitriy Shabanov</a>
 * @author <a href="mailto:gazdovsky@gmail.com">Evgeny Gazdovsky</a>
 *
 */
public class StopperTest extends ATest {
	
    @Test
    public void test_00() throws Throwable {

        testAnimo("def a #b.");
        assertAnimoResult("all b", "def a b.");

    }

    @Test
    public void test_01() throws Throwable {

        testAnimo("def a # b.", "def a #b.");
        assertAnimoResult("all b", "def a b.");

    }

    @Test
    public void test_02() throws Throwable {

        testAnimo("def a #b.");
        testAnimo("def c a.");
        assertAnimoResult("all b", "def a b.");

    }

    @Test
    public void test_03() throws Throwable {

        testAnimo("def a #b.");
        testAnimo("def c a.");
        assertAnimoResult("get b c", "a.");

    }

    @Test
    public void test_04() throws Throwable {

        testAnimo("def a #b.");
        testAnimo("def c a.");
        testAnimo("def d c.");
        assertAnimoResult("get b d", "a.");

    }

    @Test
    public void test_05() throws Throwable {

        testAnimo("def a b.");
        testAnimo("def c #a.");
        testAnimo("def d c.");
        assertAnimoResult("get b d", "a.");

    }

    @Test
    public void test_06() throws Throwable {

        testAnimo("def a b.");
        testAnimo("def c a.");
        testAnimo("def d #c.");
        assertAnimoResult("get b d", "a.");

    }

    @Test
    public void test_07() throws Throwable {

        testAnimo("def a #b.");
        testAnimo("def c #a.");
        testAnimo("def d c.");
        assertAnimoResult("get b d", "a.");

    }

    @Test
    public void test_08() throws Throwable {

        testAnimo("def a b.");
        testAnimo("def c #a.");
        testAnimo("def d #c.");
        assertAnimoResult("get b d", "a.");

    }

    @Test
    public void test_09() throws Throwable {

        testAnimo("def a #b.");
        testAnimo("def c a.");
        testAnimo("def d #c.");
        assertAnimoResult("get b d", "a.");

    }

    @Test
    public void test_10() throws Throwable {

        testAnimo("def a #b.");
        testAnimo("def c #a.");
        testAnimo("def d #c.");
        assertAnimoResult("get b d", "a.");

    }

}

@@ -1925,1227 +1925,8 @@
 %22, %22
-a.%22);%0A%0A    %7D%0A%0A    @Test%0A    public void test_05() throws Throwable %7B%0A%0A        testAnimo(%22def a b.%22);%0A        testAnimo(%22def c #a.%22);%0A        testAnimo(%22def d c.%22);%0A        assertAnimoResult(%22get b d%22, %22a.%22);%0A%0A    %7D%0A%0A    @Test%0A    public void test_06() throws Throwable %7B%0A%0A        testAnimo(%22def a b.%22);%0A        testAnimo(%22def c a.%22);%0A        testAnimo(%22def d #c.%22);%0A        assertAnimoResult(%22get b d%22, %22a.%22);%0A%0A    %7D%0A%0A    @Test%0A    public void test_07() throws Throwable %7B%0A%0A        testAnimo(%22def a #b.%22);%0A        testAnimo(%22def c #a.%22);%0A        testAnimo(%22def d c.%22);%0A        assertAnimoResult(%22get b d%22, %22a.%22);%0A%0A    %7D%0A%0A    @Test%0A    public void test_08() throws Throwable %7B%0A%0A        testAnimo(%22def a b.%22);%0A        testAnimo(%22def c #a.%22);%0A        testAnimo(%22def d #c.%22);%0A        assertAnimoResult(%22get b d%22, %22a.%22);%0A%0A    %7D%0A%0A    @Test%0A    public void test_09() throws Throwable %7B%0A%0A        testAnimo(%22def a #b.%22);%0A        testAnimo(%22def c a.%22);%0A        testAnimo(%22def d #c.%22);%0A        assertAnimoResult(%22get b d%22, %22a.%22);%0A%0A    %7D%0A%0A    @Test%0A    public void test_10() throws Throwable %7B%0A%0A        testAnimo(%22def a #b.%22);%0A        testAnimo(%22def c #a.%22);%0A        testAnimo(%22def d #c.%22);%0A        assertAnimoResult(%22get b d%22, %22a.
 %22);%0A

fix # tests