diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-17 23:02:23 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-03-17 23:02:23 +0100 |
commit | 225ed55918377ba2b53bb535cb636bfae8fc1ab4 (patch) | |
tree | 56ef2a8ceb9d11344a2a26a71a1f10b0cf2eb4bb /test/SoilMoistureIoTest.cpp | |
parent | 7edc4328bfd5eee557108ebdb4243ca06914c41e (diff) | |
download | ble-toys-225ed55918377ba2b53bb535cb636bfae8fc1ab4.tar.gz ble-toys-225ed55918377ba2b53bb535cb636bfae8fc1ab4.tar.bz2 ble-toys-225ed55918377ba2b53bb535cb636bfae8fc1ab4.tar.xz ble-toys-225ed55918377ba2b53bb535cb636bfae8fc1ab4.zip |
o Renaming CsvSampleParser to KeyValueSampleParser.
Diffstat (limited to 'test/SoilMoistureIoTest.cpp')
-rw-r--r-- | test/SoilMoistureIoTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/SoilMoistureIoTest.cpp b/test/SoilMoistureIoTest.cpp index 4a508b9..3e62b05 100644 --- a/test/SoilMoistureIoTest.cpp +++ b/test/SoilMoistureIoTest.cpp @@ -6,12 +6,12 @@ using namespace trygvis::soil_moisture; -BOOST_AUTO_TEST_CASE(csv_parser) { +BOOST_AUTO_TEST_CASE(key_value_parser) { KeyDictionary dict; auto buffer = make_shared<VectorSampleOutputStream>(); - auto parser = new CsvSampleParser(buffer, dict); + auto parser = new KeyValueSampleParser(buffer, dict); char data[] = "a=1, b=2, c=3\n"; parser->process(boost::asio::buffer(data, sizeof(data))); @@ -26,7 +26,7 @@ BOOST_AUTO_TEST_CASE(csv_parser) { BOOST_CHECK_EQUAL((*it++)->index, 2); } -BOOST_AUTO_TEST_CASE(csv_parser_with_custom_dict) { +BOOST_AUTO_TEST_CASE(key_value_parser_with_custom_dict) { KeyDictionary dict; dict.indexOf("c"); @@ -34,7 +34,7 @@ BOOST_AUTO_TEST_CASE(csv_parser_with_custom_dict) { auto buffer = make_shared<VectorSampleOutputStream>(); - auto parser = new CsvSampleParser(buffer, dict); + auto parser = new KeyValueSampleParser(buffer, dict); char data[] = "a=1, b=2, c=3\n"; parser->process(boost::asio::buffer(data, sizeof(data))); |