From 225ed55918377ba2b53bb535cb636bfae8fc1ab4 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 17 Mar 2015 23:02:23 +0100 Subject: o Renaming CsvSampleParser to KeyValueSampleParser. --- test/SoilMoistureIoTest.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') 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(); - 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(); - 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))); -- cgit v1.2.3