Skip to content

Instantly share code, notes, and snippets.

Created July 24, 2013 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6069772 to your computer and use it in GitHub Desktop.
Save anonymous/6069772 to your computer and use it in GitHub Desktop.
/*
* 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 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2013 Soumyajit De
*/
#include <shogun/base/SGObject.h>
#include <shogun/base/class_list.h>
//#include <gtest/gtest.h>
using namespace shogun;
// this is fine
void test()
{
CSGObject* object = new_sgserializable("Mosek", PT_NOT_GENERIC);
ASSERT(object)
CSGObject* clone = object->clone();
ASSERT(clone);
ASSERT(object->equals(clone));
SG_UNREF(object);
SG_UNREF(clone);
}
int main(int argc, char** argv)
{
init_shogun_with_defaults();
sg_io->set_loglevel(MSG_DEBUG);
// sg_io->set_location_info(MSG_LINE_AND_FILE);
test();
exit_shogun();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment