Package booton.translator.primitive

Source Code of booton.translator.primitive.IntConstantTest

/*
* Copyright (C) 2013 Nameless Production Committee
*
* Licensed under the MIT License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*          http://opensource.org/licenses/mit-license.php
*/
package booton.translator.primitive;

import org.junit.Test;

import booton.soeur.ScriptTester;
import booton.soeur.Scriptable;

/**
* @version 2012/11/30 1:40:13
*/
@SuppressWarnings("unused")
public class IntConstantTest extends ScriptTester {

    @Test
    public void one() {
        test(new Scriptable() {

            int act() {
                return 1;
            }
        });
    }

    @Test
    public void two() {
        test(new Scriptable() {

            int act() {
                return 2;
            }
        });
    }

    @Test
    public void three() {
        test(new Scriptable() {

            int act() {
                return 3;
            }
        });
    }

    @Test
    public void four() {
        test(new Scriptable() {

            int act() {
                return 4;
            }
        });
    }

    @Test
    public void five() {
        test(new Scriptable() {

            int act() {
                return 5;
            }
        });
    }

    @Test
    public void siz() {
        test(new Scriptable() {

            int act() {
                return 6;
            }
        });
    }

    @Test
    public void seven() {
        test(new Scriptable() {

            int act() {
                return 7;
            }
        });
    }

    @Test
    public void eight() {
        test(new Scriptable() {

            int act() {
                return 8;
            }
        });
    }

    @Test
    public void nine() {
        test(new Scriptable() {

            int act() {
                return 9;
            }
        });
    }

    @Test
    public void ten() {
        test(new Scriptable() {

            int act() {
                return 10;
            }
        });
    }

    @Test
    public void zero() {
        test(new Scriptable() {

            int act() {
                return 0;
            }
        });
    }

    @Test
    public void minusOne() {
        test(new Scriptable() {

            int act() {
                return -1;
            }
        });
    }

    @Test
    public void minusTwo() {
        test(new Scriptable() {

            int act() {
                return -2;
            }
        });
    }

    @Test
    public void minusThree() {
        test(new Scriptable() {

            int act() {
                return -3;
            }
        });
    }
}
TOP

Related Classes of booton.translator.primitive.IntConstantTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.