//
// Copyright (c) ZeroC, Inc. All rights reserved.
//

package test.Slice.macros;

import test.Slice.macros.Test.Default;
import test.Slice.macros.Test.NoDefault;
import test.Slice.macros.Test.JavaOnly;

public class Client extends test.TestHelper
{
    public void run(String[] args)
    {
        System.out.print("testing Slice predefined macros... ");
        Default d = new Default();
        test(d.x == 10);
        test(d.y == 10);

        NoDefault nd = new NoDefault();
        test(nd.x != 10);
        test(nd.y != 10);

        JavaOnly c = new JavaOnly();
        test(c.lang.equals("java"));
        test(c.version == com.zeroc.Ice.Util.intVersion());
        System.out.println("ok");
    }
}
