aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/SoilMoistureIoTest.cpp8
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)));