Skip to content

Commit

Permalink
fix cpplint errors (refs #258)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Mar 24, 2016
1 parent 9d501a0 commit 656078c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions jubatus/core/fv_converter/converter_config_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,21 +114,27 @@ TEST(converter_config, combination) {
config.num_rules = std::vector<num_rule>();
config.num_rules->push_back(nr);

combination_rule cr = {"*@num", "*@num", optional<string>("b*"), optional<string>("b*"), "add"};
combination_rule cr = {
"*@num",
"*@num",
optional<string>("b*"),
optional<string>("b*"),
"add"
};
config.combination_rules = std::vector<combination_rule>();
config.combination_rules->push_back(cr);

datum_to_fv_converter conv;
initialize_converter(config, conv);

datum d;
d.num_values_.push_back(std::make_pair("a1", 1.0));
d.num_values_.push_back(std::make_pair("a2", 2.0));
d.num_values_.push_back(std::make_pair("b", 300.0));

common::sfv_t f;
conv.convert(d, f);

common::sfv_t exp;
exp.push_back(std::make_pair("a1@num", 1.0));
exp.push_back(std::make_pair("a2@num", 2.0));
Expand Down

0 comments on commit 656078c

Please sign in to comment.