summaryrefslogtreecommitdiff
path: root/src/unittests/configuration.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-10-29 02:02:04 +0300
committerAndrei Karas <akaras@inbox.ru>2018-10-29 02:02:04 +0300
commita6d18b282ab916c6536dc25516affeb9200043b6 (patch)
tree9980735a47cb2118999fb4f4dceaa52bf9f4fae7 /src/unittests/configuration.cc
parent98c74738f21d7ae256f1273b6c1614ee64e2a3ad (diff)
downloadmanaverse-s20181102.tar.gz
manaverse-s20181102.tar.bz2
manaverse-s20181102.tar.xz
manaverse-s20181102.zip
Fix code style.s20181102
Diffstat (limited to 'src/unittests/configuration.cc')
-rw-r--r--src/unittests/configuration.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/unittests/configuration.cc b/src/unittests/configuration.cc
index 495684ab6..11b463d86 100644
--- a/src/unittests/configuration.cc
+++ b/src/unittests/configuration.cc
@@ -67,7 +67,7 @@ TEST_CASE("configuration tests", "configuration")
{
const char *const key = "sfxVolume";
REQUIRE(config.getIntValue(key) == 100);
- REQUIRE(config.getFloatValue(key) >= 100.0f);
+ REQUIRE(config.getFloatValue(key) >= 100.0F);
REQUIRE(config.getStringValue(key) == "100");
REQUIRE(config.getBoolValue(key) == true);
}
@@ -76,7 +76,7 @@ TEST_CASE("configuration tests", "configuration")
{
const char *const key = "guialpha";
REQUIRE(config.getIntValue(key) == 0);
- REQUIRE(config.getFloatValue(key) >= 0.8f);
+ REQUIRE(config.getFloatValue(key) >= 0.8F);
REQUIRE(config.getStringValue(key).substr(0, 3) == "0.8");
REQUIRE(config.getBoolValue(key) == false);
}
@@ -85,7 +85,7 @@ TEST_CASE("configuration tests", "configuration")
{
const char *const key = "soundwhisper";
REQUIRE(config.getIntValue(key) == 0);
- REQUIRE(config.getFloatValue(key) >= 0.0f);
+ REQUIRE(config.getFloatValue(key) >= 0.0F);
REQUIRE(config.getStringValue(key) == "newmessage");
REQUIRE(config.getBoolValue(key) == true);
}
@@ -94,7 +94,7 @@ TEST_CASE("configuration tests", "configuration")
{
const char *const key = "showgender";
REQUIRE(config.getIntValue(key) == 1);
- REQUIRE(config.getFloatValue(key) >= 1.0f);
+ REQUIRE(config.getFloatValue(key) >= 1.0F);
REQUIRE(config.getStringValue(key) == "1");
REQUIRE(config.getBoolValue(key) == true);
}
@@ -103,7 +103,7 @@ TEST_CASE("configuration tests", "configuration")
{
const char *const key = "showlevel";
REQUIRE(config.getIntValue(key) == 0);
- REQUIRE(config.getFloatValue(key) >= 0.0f);
+ REQUIRE(config.getFloatValue(key) >= 0.0F);
REQUIRE(config.getStringValue(key) == "0");
REQUIRE(config.getBoolValue(key) == false);
}
@@ -113,7 +113,7 @@ TEST_CASE("configuration tests", "configuration")
const char *const key = "sfxVolume";
config.setValue(key, 50);
REQUIRE(config.getIntValue(key) == 50);
- REQUIRE(config.getFloatValue(key) >= 50.0f);
+ REQUIRE(config.getFloatValue(key) >= 50.0F);
REQUIRE(config.getStringValue(key) == "50");
REQUIRE(config.getBoolValue(key) == true);
@@ -132,7 +132,7 @@ TEST_CASE("configuration tests", "configuration")
const char *const key = "guialpha";
config.setValue(key, 50.5);
REQUIRE(config.getIntValue(key) == 50);
- REQUIRE(config.getFloatValue(key) >= 50.4f);
+ REQUIRE(config.getFloatValue(key) >= 50.4F);
REQUIRE(config.getStringValue(key).substr(0, 2) == "50");
REQUIRE(config.getBoolValue(key) == true);
@@ -151,7 +151,7 @@ TEST_CASE("configuration tests", "configuration")
const char *const key = "soundwhisper";
config.setValue(key, "test line");
REQUIRE(config.getIntValue(key) == 0);
- REQUIRE(config.getFloatValue(key) >= 0.0f);
+ REQUIRE(config.getFloatValue(key) >= 0.0F);
REQUIRE(config.getStringValue(key) == "test line");
REQUIRE(config.getBoolValue(key) == false);
@@ -170,7 +170,7 @@ TEST_CASE("configuration tests", "configuration")
const char *const key = "showgender";
config.setValue(key, true);
REQUIRE(config.getIntValue(key) == 1);
- REQUIRE(config.getFloatValue(key) >= 1.0f);
+ REQUIRE(config.getFloatValue(key) >= 1.0F);
REQUIRE(config.getStringValue(key) == "1");
REQUIRE(config.getBoolValue(key) == true);
@@ -189,7 +189,7 @@ TEST_CASE("configuration tests", "configuration")
const char *const key = "showgender";
config.setValue(key, false);
REQUIRE(config.getIntValue(key) == 0);
- REQUIRE(config.getFloatValue(key) >= 0.0f);
+ REQUIRE(config.getFloatValue(key) >= 0.0F);
REQUIRE(config.getStringValue(key) == "0");
REQUIRE(config.getBoolValue(key) == false);
@@ -249,12 +249,12 @@ TEST_CASE("configuration tests", "configuration")
const char *const key = "sfxVolume";
config.setValue(key, 20);
REQUIRE(config.getIntValue(key) == 20);
- REQUIRE(config.getFloatValue(key) >= 20.0f);
+ REQUIRE(config.getFloatValue(key) >= 20.0F);
REQUIRE(config.getStringValue(key) == "20");
REQUIRE(config.getBoolValue(key) == true);
config.resetIntValue(key);
REQUIRE(config.getIntValue(key) == 100);
- REQUIRE(config.getFloatValue(key) >= 100.0f);
+ REQUIRE(config.getFloatValue(key) >= 100.0F);
REQUIRE(config.getStringValue(key) == "100");
REQUIRE(config.getBoolValue(key) == true);
}
@@ -264,13 +264,13 @@ TEST_CASE("configuration tests", "configuration")
const char *const key = "showgender";
config.setValue(key, false);
REQUIRE(config.getIntValue(key) == 0);
- REQUIRE(config.getFloatValue(key) >= 0.0f);
+ REQUIRE(config.getFloatValue(key) >= 0.0F);
REQUIRE(config.getStringValue(key) == "0");
REQUIRE(config.getBoolValue(key) == false);
config.resetBoolValue(key);
REQUIRE(config.getIntValue(key) == 1);
- REQUIRE(config.getFloatValue(key) >= 1.0f);
+ REQUIRE(config.getFloatValue(key) >= 1.0F);
REQUIRE(config.getStringValue(key) == "1");
REQUIRE(config.getBoolValue(key) == true);
}
@@ -280,13 +280,13 @@ TEST_CASE("configuration tests", "configuration")
const char *const key = "showlevel";
config.setValue(key, true);
REQUIRE(config.getIntValue(key) == 1);
- REQUIRE(config.getFloatValue(key) >= 1.0f);
+ REQUIRE(config.getFloatValue(key) >= 1.0F);
REQUIRE(config.getStringValue(key) == "1");
REQUIRE(config.getBoolValue(key) == true);
config.resetBoolValue(key);
REQUIRE(config.getIntValue(key) == 0);
- REQUIRE(config.getFloatValue(key) >= 0.0f);
+ REQUIRE(config.getFloatValue(key) >= 0.0F);
REQUIRE(config.getStringValue(key) == "0");
REQUIRE(config.getBoolValue(key) == false);
}