microprogress
This commit is contained in:
parent
bdd0478652
commit
82131d590c
|
@ -7,6 +7,7 @@
|
||||||
#include "unit_test_framework.h"
|
#include "unit_test_framework.h"
|
||||||
#include "hip9011_lookup.h"
|
#include "hip9011_lookup.h"
|
||||||
#include "HIP9011_logic.h"
|
#include "HIP9011_logic.h"
|
||||||
|
#include "test_parameters.h"
|
||||||
using ::testing::_;
|
using ::testing::_;
|
||||||
|
|
||||||
TEST(hip9011, lookup) {
|
TEST(hip9011, lookup) {
|
||||||
|
|
|
@ -2,19 +2,11 @@
|
||||||
* @file test_on_demand_parameters.cpp
|
* @file test_on_demand_parameters.cpp
|
||||||
*
|
*
|
||||||
* Created on: Jan 16, 2019
|
* Created on: Jan 16, 2019
|
||||||
* @author Andrey Belomutskiy, (c) 2012-2018
|
* @author Andrey Belomutskiy, (c) 2012-2019
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <unordered_map>
|
|
||||||
#include "unit_test_framework.h"
|
#include "unit_test_framework.h"
|
||||||
using namespace std;
|
#include "test_parameters.h"
|
||||||
|
|
||||||
class TestParameters {
|
|
||||||
public:
|
|
||||||
unordered_map<string, float> values;
|
|
||||||
TestParameters* put(string key, float value);
|
|
||||||
float get(string key) const;
|
|
||||||
};
|
|
||||||
|
|
||||||
TestParameters* TestParameters::put(string key, float value) {
|
TestParameters* TestParameters::put(string key, float value) {
|
||||||
values[key] = value;
|
values[key] = value;
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
/*
|
||||||
|
* test_parameters.h
|
||||||
|
*
|
||||||
|
* Created on: Jan 17, 2019
|
||||||
|
* @author Andrey Belomutskiy, (c) 2012-2019
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef TESTS_TEST_PARAMETERS_H_
|
||||||
|
#define TESTS_TEST_PARAMETERS_H_
|
||||||
|
|
||||||
|
#include <unordered_map>
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
class TestParameters {
|
||||||
|
public:
|
||||||
|
unordered_map<string, float> values;
|
||||||
|
TestParameters* put(string key, float value);
|
||||||
|
float get(string key) const;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif /* TESTS_TEST_PARAMETERS_H_ */
|
Loading…
Reference in New Issue