#include "media/learning/common/labelled_example.h"
#include <algorithm>
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
namespace learning {
class LearnerLabelledExampleTest : public testing::Test { … };
TEST_F(LearnerLabelledExampleTest, InitListWorks) { … }
TEST_F(LearnerLabelledExampleTest, CopyConstructionWorks) { … }
TEST_F(LearnerLabelledExampleTest, MoveConstructionWorks) { … }
TEST_F(LearnerLabelledExampleTest, EqualExamplesCompareAsEqual) { … }
TEST_F(LearnerLabelledExampleTest, UnequalFeaturesCompareAsUnequal) { … }
TEST_F(LearnerLabelledExampleTest, WeightDoesntChangeExampleEquality) { … }
TEST_F(LearnerLabelledExampleTest, ExampleAssignmentCopiesWeights) { … }
TEST_F(LearnerLabelledExampleTest, UnequalTargetsCompareAsUnequal) { … }
TEST_F(LearnerLabelledExampleTest, OrderingIsTransitive) { … }
TEST_F(LearnerLabelledExampleTest, UnweightedTrainingDataPushBack) { … }
TEST_F(LearnerLabelledExampleTest, WeightedTrainingDataPushBack) { … }
TEST_F(LearnerLabelledExampleTest, TrainingDataDeDuplicate) { … }
}
}