-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
voting power, url from comment permlink, create suggest password, esp…
… etc
- Loading branch information
SteakOverCooked
authored and
SteakOverCooked
committed
May 21, 2018
1 parent
1984fb4
commit 6586ee4
Showing
7 changed files
with
192 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,6 @@ Class Formatter | |
v = -v | ||
End If | ||
Reputation = v * 9 + 25 | ||
End Function | ||
End Function | ||
|
||
End Class | ||
End Class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
' Test CreateSuggestedPassword | ||
|
||
Dim x | ||
Set x = New Utility | ||
|
||
AssertEqual Len(x.CreateSuggestedPassword), 32, "" | ||
|
||
AssertEqual Len(x.CreateSuggestedPassword), 32, "" | ||
|
||
AssertNotEqual x.CreateSuggestedPassword, x.CreateSuggestedPassword, "" | ||
|
||
Set x = Nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
' test GetAccount_EffectiveSteemPower | ||
|
||
Dim SteemIt | ||
Set SteemIt = New Steem | ||
|
||
Dim esp | ||
esp = SteemIt.GetAccount_EffectiveSteemPower("justyy") | ||
|
||
WScript.Echo esp | ||
AssertTrue esp >= 20000, "justyy esp should be larger than 20000" | ||
|
||
Set SteemIt = Nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
' Test GetUrlFromCommentPermLink | ||
|
||
Dim x | ||
Set x = New Utility | ||
|
||
AssertEqual x.GetUrlFromCommentPermLink("re-tvb-re-justyy-re-tvb-45qr3w-20171011t144205534z"), "https://steemit.com/@tvb/45qr3w", "" | ||
|
||
AssertEqual x.GetUrlFromCommentPermLink("re-justyy-daily-quality-cn-posts-selected-and-rewarded-promo-cn-20180520t153728557z"), "https://steemit.com/@justyy/daily-quality-cn-posts-selected-and-rewarded-promo-cn", "" | ||
|
||
Set x = Nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
' test GetAccount_VotingPower | ||
|
||
Dim SteemIt | ||
Set SteemIt = New Steem | ||
|
||
Dim vp | ||
vp = SteemIt.GetAccount_VotingPower("justyy") | ||
|
||
AssertTrue vp >= 60 And vp <= 100, "justyy vp should be between 60 and 100" | ||
|
||
Set SteemIt = Nothing |