Definition at line 107 of file TestBestFile.h. References Impala::Util::PropertySet::Add(), and Impala::Core::Training::BestFileDiff(). 00108 { 00109 Util::PropertySet set1("w1=1 w2=1 gamma=1 C=1"); 00110 Util::PropertySet set2(""); 00111 CPPUNIT_ASSERT_EQUAL(0, BestFileDiff(&set1, &set2)); 00112 CPPUNIT_ASSERT_EQUAL(0, BestFileDiff(&set2, &set1)); 00113 set1.Add("gamma", "0.5"); 00114 CPPUNIT_ASSERT_EQUAL(1, BestFileDiff(&set1, &set2)); 00115 set1.Add("w2", "75"); 00116 CPPUNIT_ASSERT_EQUAL(2, BestFileDiff(&set1, &set2)); 00117 CPPUNIT_ASSERT_EQUAL(2, BestFileDiff(&set2, &set1)); 00118 }
Here is the call graph for this function:
|