Merge pull request #8976 from dobrykafe/pr-align-separators

Better alignment of upper and lower separators
This commit is contained in:
Dennis Felsing 2024-09-17 22:39:02 +00:00 committed by GitHub
commit 60624d5599
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 10 deletions

View file

@ -1028,7 +1028,7 @@ bool CScoreWorker::ShowTop(IDbConnection *pSqlServer, const ISqlData *pGameData,
if(!g_Config.m_SvRegionalRankings) if(!g_Config.m_SvRegionalRankings)
{ {
str_copy(pResult->m_Data.m_aaMessages[Line], "----------------------------------------", sizeof(pResult->m_Data.m_aaMessages[Line])); str_copy(pResult->m_Data.m_aaMessages[Line], "-----------------------------------------", sizeof(pResult->m_Data.m_aaMessages[Line]));
return !End; return !End;
} }
@ -1146,7 +1146,7 @@ bool CScoreWorker::ShowTeamTop5(IDbConnection *pSqlServer, const ISqlData *pGame
} }
} }
str_copy(paMessages[Line], "-------------------------------", sizeof(paMessages[Line])); str_copy(paMessages[Line], "---------------------------------", sizeof(paMessages[Line]));
return false; return false;
} }
@ -1230,7 +1230,7 @@ bool CScoreWorker::ShowPlayerTeamTop5(IDbConnection *pSqlServer, const ISqlData
break; break;
} }
} }
str_copy(paMessages[Line], "-------------------------------", sizeof(paMessages[Line])); str_copy(paMessages[Line], "---------------------------------", sizeof(paMessages[Line]));
} }
else else
{ {
@ -1352,7 +1352,7 @@ bool CScoreWorker::ShowTimes(IDbConnection *pSqlServer, const ISqlData *pGameDat
{ {
return true; return true;
} }
str_copy(paMessages[Line], "----------------------------------------------------", sizeof(paMessages[Line])); str_copy(paMessages[Line], "-------------------------------------------", sizeof(paMessages[Line]));
return false; return false;
} }

View file

@ -160,7 +160,7 @@ TEST_P(SingleScore, Top)
ExpectLines(m_pPlayerResult, ExpectLines(m_pPlayerResult,
{"------------ Global Top ------------", {"------------ Global Top ------------",
"1. nameless tee Time: 01:40.00", "1. nameless tee Time: 01:40.00",
"----------------------------------------"}); "-----------------------------------------"});
} }
TEST_P(SingleScore, RankRegional) TEST_P(SingleScore, RankRegional)
@ -197,7 +197,7 @@ TEST_P(SingleScore, TopServer)
ExpectLines(m_pPlayerResult, ExpectLines(m_pPlayerResult,
{"------------ Global Top ------------", {"------------ Global Top ------------",
"1. nameless tee Time: 01:40.00", "1. nameless tee Time: 01:40.00",
"----------------------------------------"}); "-----------------------------------------"});
} }
TEST_P(SingleScore, RankServerRegional) TEST_P(SingleScore, RankServerRegional)
@ -264,7 +264,7 @@ TEST_P(SingleScore, TimesExists)
str_copy(aBuf, m_pPlayerResult->m_Data.m_aaMessages[1] + str_length(m_pPlayerResult->m_Data.m_aaMessages[1]) - 10, 11); str_copy(aBuf, m_pPlayerResult->m_Data.m_aaMessages[1] + str_length(m_pPlayerResult->m_Data.m_aaMessages[1]) - 10, 11);
EXPECT_STREQ(aBuf, ", 01:40.00"); EXPECT_STREQ(aBuf, ", 01:40.00");
EXPECT_STREQ(m_pPlayerResult->m_Data.m_aaMessages[2], "----------------------------------------------------"); EXPECT_STREQ(m_pPlayerResult->m_Data.m_aaMessages[2], "-------------------------------------------");
for(int i = 3; i < CScorePlayerResult::MAX_MESSAGES; i++) for(int i = 3; i < CScorePlayerResult::MAX_MESSAGES; i++)
{ {
EXPECT_STREQ(m_pPlayerResult->m_Data.m_aaMessages[i], ""); EXPECT_STREQ(m_pPlayerResult->m_Data.m_aaMessages[i], "");
@ -321,7 +321,7 @@ TEST_P(TeamScore, All)
ExpectLines(m_pPlayerResult, ExpectLines(m_pPlayerResult,
{"------- Team Top 5 -------", {"------- Team Top 5 -------",
"1. brainless tee & nameless tee Team Time: 01:40.00", "1. brainless tee & nameless tee Team Time: 01:40.00",
"-------------------------------"}); "---------------------------------"});
} }
TEST_P(TeamScore, PlayerExists) TEST_P(TeamScore, PlayerExists)
@ -331,7 +331,7 @@ TEST_P(TeamScore, PlayerExists)
ExpectLines(m_pPlayerResult, ExpectLines(m_pPlayerResult,
{"------- Team Top 5 -------", {"------- Team Top 5 -------",
"1. brainless tee & nameless tee Team Time: 01:40.00", "1. brainless tee & nameless tee Team Time: 01:40.00",
"-------------------------------"}); "---------------------------------"});
} }
TEST_P(TeamScore, PlayerDoesntExist) TEST_P(TeamScore, PlayerDoesntExist)
@ -349,7 +349,7 @@ TEST_P(TeamScore, RankUpdates)
ExpectLines(m_pPlayerResult, ExpectLines(m_pPlayerResult,
{"------- Team Top 5 -------", {"------- Team Top 5 -------",
"1. brainless tee & nameless tee Team Time: 01:38.00", "1. brainless tee & nameless tee Team Time: 01:38.00",
"-------------------------------"}); "---------------------------------"});
} }
struct MapInfo : public Score struct MapInfo : public Score