优化了主页的读取方式
This commit is contained in:
@@ -49,6 +49,17 @@ TEST_CASE("SQLiteDB Test", "[SQLiteDB]") {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
SECTION("Test GETDATA") {
|
||||
StateData stateData;
|
||||
std::string time;
|
||||
REQUIRE(db.getStateData(stateData,time) == true);
|
||||
REQUIRE(db.getStateData(stateData) == true);
|
||||
REQUIRE(stateData.state_id == 1);
|
||||
REQUIRE(stateData.state_name == "test");
|
||||
cout << "-------------------------------------------------" << time << endl;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user