Logo Search packages:      
Sourcecode: agave version File versions  Download package

color-group-test.cc

/*******************************************************************************
 *  PROJECT: GNOME Colorscheme
 *
 *  AUTHOR: Jonathon Jongsma
 *
 *  Copyright (c) 2005 Jonathon Jongsma
 *
 *  License:
 *    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 2 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, write to the 
 *    Free Software Foundation, Inc., 59 Temple Place, Suite 330, 
 *    Boston, MA  02111-1307  USA
 *
 *******************************************************************************/

#include "color-group-test.h"
#include "core/gcs-scheme.h"
#include "core/gcs-color.h"

namespace gcs
{

    void ColorGroupTestSuite::testDefaultConstructor(void)
    {
        ColorGroup myGroup;
        ColorPtr color1 = Color::create(1, 2, 3);
        ColorPtr color2 = Color::create("AB23F5");
        ColorPtr color3 = Color::create(23, 99, 223);
        ColorPtr color4 = Color::create("e5982c");
        myGroup.push_back(color1);
        myGroup.push_back(color2);
        myGroup.push_back(color3);
        myGroup.print();

        //Scheme sch1 = new Scheme(color4, SCHEME_COMPLEMENTS);
        //Scheme sch2 = new Scheme(color4, SCHEME_SPLIT_COMPLEMENTS);
        //Scheme sch3 = new Scheme(color4, SCHEME_TRIADS);
        //Scheme sch4 = new Scheme(color4, SCHEME_TETRADS);
        //Scheme sch5 = new Scheme(color4, SCHEME_ANALOGOUS);
        //Scheme sch6 = new Scheme(color4, SCHEME_MONOCHROMATIC);
        CPPUNIT_FAIL("Not implemented yet");
    }

} // namespace gcs

Generated by  Doxygen 1.6.0   Back to index