Awesome! But since we’re stress-testing it, let’s try doing things wrong.
First thing that I noticed is that it doesn’t let you post if there’s a poll error. That’s great! … except it doesn’t respect four spaces to put something in code format, so I can’t easily tell you what I tried and what failed. Putting tests in their own comments to make it more obvious when something passes.
Polls are stored by their id, which makes it so they can’t be edited after the fact. (Probably wise.) But what happens when you refer to an old poll by its id?
This is |pollid:10|, which refers to the poll from this comment.
The code for that was |poll:number|{all of them}{none of them}, with the pipes replaced by square brackets. It looks like the interior poll type takes precedence, which is probably what should happen, but it might be better to complain instead.
Awesome! But since we’re stress-testing it, let’s try doing things wrong.
First thing that I noticed is that it doesn’t let you post if there’s a poll error. That’s great! … except it doesn’t respect four spaces to put something in code format, so I can’t easily tell you what I tried and what failed. Putting tests in their own comments to make it more obvious when something passes.
[edit]Oops, this also floods recent comments.
Trying to do a poll with only one option fails gracefully. Example: What kind of book did you read last? [poll]{a book}
Modifying the number of periods modifies the number of options available: [pollid:12]
|poll:True............False|
One period is well-defined: Nope. |poll:True.False| throws an “invalid poll type” error.
What about leaving off one of the names? |poll:True...| throws an “invalid poll type” error as well.
Polls are stored by their id, which makes it so they can’t be edited after the fact. (Probably wise.) But what happens when you refer to an old poll by its id?
This is |pollid:10|, which refers to the poll from this comment.
[pollid:10]
What about a future poll?
[pollid:999999]
What if you then create the poll?
Trying to put two kinds of polls together:
How many bugs will I find? [pollid:11]
The code for that was |poll:number|{all of them}{none of them}, with the pipes replaced by square brackets. It looks like the interior poll type takes precedence, which is probably what should happen, but it might be better to complain instead.
What use is the mean if anyone can just do something like this?
Yeah, scrap the mean, and show the 1st and 3rd quartile in addition to the median.
Point already raised and discussed, see below.
Testing the spaces to make sure I’m doing it right:
Now let’s try a well-formatted poll:
Total:25, but adding up the votes for each option gives 24.
Fascinating, I got two and two (total 33), and after refreshing I see the poll text but it won’t let me vote, because I already voted.
Also, I think it’s sort of amusing that this is the only thing I found that looks like a serious bug to me, but it has the least upvotes of my tests.
Less explanation of what exactly you were testing, so the fluency bias kicked in.