From 72ef9599ed4539dd6ec0e0ea26c004a63568e4e0 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Tue, 7 Apr 2020 12:05:37 +0200 Subject: [PATCH] Add conststring to several tests. --- tests/ScriptTests/ScriptTypeTests/Library/FormesTests.cpp | 2 +- tests/ScriptTests/ScriptTypeTests/Library/SpeciesTests.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ScriptTests/ScriptTypeTests/Library/FormesTests.cpp b/tests/ScriptTests/ScriptTypeTests/Library/FormesTests.cpp index 71eeae6..36c52db 100644 --- a/tests/ScriptTests/ScriptTypeTests/Library/FormesTests.cpp +++ b/tests/ScriptTests/ScriptTypeTests/Library/FormesTests.cpp @@ -7,7 +7,7 @@ static std::unordered_map _scripts = std::unordered_map{{"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; } diff --git a/tests/ScriptTests/ScriptTypeTests/Library/SpeciesTests.cpp b/tests/ScriptTests/ScriptTypeTests/Library/SpeciesTests.cpp index 3b5089b..3268ae5 100644 --- a/tests/ScriptTests/ScriptTypeTests/Library/SpeciesTests.cpp +++ b/tests/ScriptTests/ScriptTypeTests/Library/SpeciesTests.cpp @@ -7,7 +7,7 @@ static std::unordered_map _scripts = std::unordered_map{{"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; }