@Test
    public void t_gd2gc()
    /**
    **
    **  Test jauGd2gc function.
    **
    **  Returned:
    **     status    int         TRUE = success, FALSE = fail
    **
    **  Called:  jauGd2gc, viv, vvd
    **
    **  This revision:  2009 November 6
    */
    {
        double e = 3.1, p = -0.5, h = 2500.0;
        double xyz[] = new double[3];

        try {
            xyz = jauGd2gc( 0, e, p, h );

            fail("jauGd2gc should thow exception for illegal parameter");
        } catch (JSOFAIllegalParameter e1) {
            // expected behaviour

        } catch (JSOFAInternalError e1) {
            fail("jauGd2gc should thow exception for illegal parameter");
        }

        try {
            xyz = jauGd2gc( 1, e, p, h );


            vvd(xyz[0], -5599000.5577049947, 1e-7, "jauGd2gc", "0/1");
            vvd(xyz[1], 233011.67223479203, 1e-7, "jauGd2gc", "1/1");
            vvd(xyz[2], -3040909.4706983363, 1e-7, "jauGd2gc", "2/1");

            xyz = jauGd2gc( 2, e, p, h);

            vvd(xyz[0], -5599000.5577260984, 1e-7, "jauGd2gc", "0/2");
            vvd(xyz[1], 233011.6722356703, 1e-7, "jauGd2gc", "1/2");
            vvd(xyz[2], -3040909.4706095476, 1e-7, "jauGd2gc", "2/2");
            
            xyz = jauGd2gc( 3, e, p, h);
            vvd(xyz[0], -5598998.7626301490, 1e-7, "jauGd2gc", "0/3");
            vvd(xyz[1], 233011.5975297822, 1e-7, "jauGd2gc", "1/3");
            vvd(xyz[2], -3040908.6861467111, 1e-7, "jauGd2gc", "2/3");
            
        } catch (JSOFAException e1) {
            fail("jauGd2gc should not thow exception ");
        }

        try {
            xyz = jauGd2gc( 4, e, p, h );
            fail("jauGd2gc should thow exception for illegal parameter");
        } catch (JSOFAIllegalParameter e1) {
            //expected behaviour
        } catch (JSOFAInternalError e1) {
            fail("jauGd2gc should thow exception for illegal parameter");
        }
    }