-
Notifications
You must be signed in to change notification settings - Fork 8
/
GRM_CodeTests.lua
49 lines (41 loc) · 1.8 KB
/
GRM_CodeTests.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
-- -- TESTING
-- GRM_T = {};
-- GRM_T.TestRejoinWithNameChange = function()
-- for name , player in pairs ( GRM_GuildMemberHistory_Save[GRM_G.guildName] ) do
-- if type ( player ) == "table" then
-- print("Testing with: " .. player.name );
-- player.name = "XXXXXXXXXX-Zul'jin";
-- GRM_PlayersThatLeftHistory_Save[ GRM_G.guildName ]["NoobName-Zul'jin"] = {};
-- GRM_PlayersThatLeftHistory_Save[ GRM_G.guildName ]["NoobName-Zul'jin"] = GRM.DeepCopyArray ( player );
-- GRM_GuildMemberHistory_Save[GRM_G.guildName][name] = nil;
-- break;
-- end
-- end
-- end
-- GRM_T.TestRejoin = function()
-- for name , player in pairs ( GRM_GuildMemberHistory_Save[GRM_G.guildName] ) do
-- if type ( player ) == "table" then
-- print("Testing with: " .. player.name );
-- GRM_PlayersThatLeftHistory_Save[ GRM_G.guildName ][name] = {};
-- GRM_PlayersThatLeftHistory_Save[ GRM_G.guildName ][name] = GRM.DeepCopyArray ( player );
-- GRM_GuildMemberHistory_Save[GRM_G.guildName][name] = nil;
-- break;
-- end
-- end
-- end
-- GRM_T.TestJoinWithSameNameButDifferent = function()
-- for name , player in pairs ( GRM_GuildMemberHistory_Save[GRM_G.guildName] ) do
-- if type ( player ) == "table" then
-- print("Testing with: " .. name );
-- player.GUID = UnitGUID("PLAYER");
-- player.class = "HUNTER"
-- break;
-- end
-- end
-- end
-- GRM_T.TestRankNumChange = function()
-- local ranks = GRM.GetListOfGuildRanks ( true , true , true );
-- local guildData = GRM.GetGuild();
-- guildData.ranks = string.sub ( ranks , string.find ( ranks , "|" ) + 2 )
-- guildData.grmNumRanks = 9;
-- end