Add conststring to several tests.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
aa8915b314
commit
72ef9599ed
|
@ -7,7 +7,7 @@ static std::unordered_map<const char*, const char*> _scripts =
|
|||
std::unordered_map<const char*, const char*>{{"testScript1", R"(
|
||||
namespace Pokemon{
|
||||
class testScript1 {
|
||||
bool testName(const Forme@ s, const string &in name){ return s.Name == name; }
|
||||
bool testName(const Forme@ s, const constString &in name){ return s.Name == name; }
|
||||
bool testWeight(const Forme@ s, float weight){ return s.Weight == weight; }
|
||||
bool testHeight(const Forme@ s, float height){ return s.Height == height; }
|
||||
bool testBaseExperience(const Forme@ s, uint baseExperience){ return s.BaseExperience == baseExperience; }
|
||||
|
|
|
@ -7,7 +7,7 @@ static std::unordered_map<const char*, const char*> _scripts =
|
|||
std::unordered_map<const char*, const char*>{{"testScript1", R"(
|
||||
namespace Pokemon{
|
||||
class testScript1 {
|
||||
bool testName(const Species@ s, const string &in name){ return s.Name == name; }
|
||||
bool testName(const Species@ s, const constString &in name){ return s.Name == name; }
|
||||
bool testId(const Species@ s, uint16 id){ return s.Id == id; }
|
||||
bool testGenderRate(const Species@ s, float rate){ return s.GenderRate == rate; }
|
||||
bool testCaptureRate(const Species@ s, uint8 rate){ return s.CaptureRate == rate; }
|
||||
|
|
Loading…
Reference in New Issue