Created
July 24, 2013 11:29
-
-
Save anonymous/6069772 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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