Definition at line 76 of file TestBestFile.h. References Impala::Util::PropertySet::Add(), and Impala::Core::Training::BestFileDiff(). 00077 { 00078 Util::PropertySet set1("w1=1 w2=1 C=1"); 00079 Util::PropertySet set2("w1=1 w2=1 C=1"); 00080 CPPUNIT_ASSERT_EQUAL(0, BestFileDiff(&set1, &set2)); 00081 set2.Add("w1","2"); 00082 CPPUNIT_ASSERT_EQUAL(1, BestFileDiff(&set1, &set2)); 00083 set2.Add("w2","2"); 00084 CPPUNIT_ASSERT_EQUAL(2, BestFileDiff(&set1, &set2)); 00085 set2.Add("C","2"); 00086 CPPUNIT_ASSERT_EQUAL(3, BestFileDiff(&set1, &set2)); 00087 set2.Add("gamma","2.3"); 00088 CPPUNIT_ASSERT_EQUAL(4, BestFileDiff(&set1, &set2)); 00089 }
Here is the call graph for this function:
|