Skip to content

Commit

Permalink
Updated scores to verify ranking
Browse files Browse the repository at this point in the history
  • Loading branch information
benlowry committed Jun 12, 2013
1 parent 71098bd commit f4e1083
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .actionScriptProperties
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,4 @@
<flashCatalyst validateFlashCatalystCompatibility="false"/>
</actionScriptProperties>


8 changes: 6 additions & 2 deletions src/com/playtomic/as3/TestLeaderboards.as
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,15 @@ package com.playtomic.as3
playername: "test account",
playerid: "test@testuri.com",
table: "personal" + rnd,
points: 3000,
points: 2500,
highest: true,
allowduplicates: true,
fields: {
rnd: rnd
},
filters: {
rnd: rnd
},
perpage: 5
};

Expand All @@ -278,7 +281,8 @@ package com.playtomic.as3
assertTrue(section, "Score 5 ranked 10", scores[4].rank == 10);
assertTrue(section, "Score 1 points", scores[0].points == 4000);
assertTrue(section, "Score 2 points", scores[1].points == 3000);
assertTrue(section, "Score 3 points", scores[2].points == 3000);
assertTrue(section, "Score 3 points", scores[2].points == 2500);
assertTrue(section, "Score 3 submitted", scores [2].submitted);
assertTrue(section, "Score 4 points", scores[3].points == 2000);
assertTrue(section, "Score 5 points", scores[4].points == 1000);
done();
Expand Down

0 comments on commit f4e1083

Please sign in to comment.