Commit Graph

16 Commits

Author SHA1 Message Date
Andy Tudhope 1de44773cd
Change order of asserts and add more coverage to upvotes when votes_cast > 0 2019-04-09 17:57:07 +02:00
Andy Tudhope 82bb4751f9
Use Math.ceil() to overcome rounding & precision issues 2019-04-09 17:13:02 +02:00
Andy Tudhope 25efb90aa3
Assert fails in tests, more downvote checks 2019-04-09 17:07:45 +02:00
Andy Tudhope 6ea2cc1813
Readability & cleanup 2019-04-09 16:25:58 +02:00
Andy Tudhope 851ebcf6ec
Readability & cleanup 2019-04-09 16:21:40 +02:00
Andy Tudhope 77d5e12861
Readability & cleanup 2019-04-09 15:44:23 +02:00
Andy Tudhope 7d47f5ce9e
More generalisable balance calcs 2019-04-09 15:31:26 +02:00
Andy Tudhope 674255caa6
Add test for second downvote 2019-04-09 14:46:19 +02:00
Andy Tudhope 8a47293af9
Withdraw fails and more generalisable numbers 2019-04-09 14:38:27 +02:00
Andy Tudhope ccbec568c1
Adds tests for upvoteEffect and Withdraw 2019-04-09 12:21:23 +02:00
Andy Tudhope 753c23b3ce
Tests upvotes with votes already cast, checks SNT sends 2019-04-09 10:33:00 +02:00
Andy Tudhope d3b634e57e
Change downvote transfer so tests work 2019-04-09 09:16:48 +02:00
Andy Tudhope 037805bacc
Minor updates 2019-04-08 23:50:00 +02:00
Andy Tudhope 4a2e3f8f6e
More tests, WIP 2019-04-08 22:11:06 +02:00
Andy Tudhope 73400ff3ac
More tests, WIP 2019-04-08 21:22:45 +02:00
Andy Tudhope bb6535becb
Begin testing 2019-04-08 19:28:36 +02:00