Add conststring to several tests.
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -7,7 +7,7 @@ static std::unordered_map<const char*, const char*> _scripts =
 | 
				
			|||||||
    std::unordered_map<const char*, const char*>{{"testScript1", R"(
 | 
					    std::unordered_map<const char*, const char*>{{"testScript1", R"(
 | 
				
			||||||
namespace Pokemon{
 | 
					namespace Pokemon{
 | 
				
			||||||
class testScript1 {
 | 
					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 testWeight(const Forme@ s, float weight){ return s.Weight == weight; }
 | 
				
			||||||
    bool testHeight(const Forme@ s, float height){ return s.Height == height; }
 | 
					    bool testHeight(const Forme@ s, float height){ return s.Height == height; }
 | 
				
			||||||
    bool testBaseExperience(const Forme@ s, uint baseExperience){ return s.BaseExperience == baseExperience; }
 | 
					    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"(
 | 
					    std::unordered_map<const char*, const char*>{{"testScript1", R"(
 | 
				
			||||||
namespace Pokemon{
 | 
					namespace Pokemon{
 | 
				
			||||||
class testScript1 {
 | 
					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 testId(const Species@ s, uint16 id){ return s.Id == id; }
 | 
				
			||||||
    bool testGenderRate(const Species@ s, float rate){ return s.GenderRate == rate; }
 | 
					    bool testGenderRate(const Species@ s, float rate){ return s.GenderRate == rate; }
 | 
				
			||||||
    bool testCaptureRate(const Species@ s, uint8 rate){ return s.CaptureRate == rate; }
 | 
					    bool testCaptureRate(const Species@ s, uint8 rate){ return s.CaptureRate == rate; }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user