Ensure that from_str fails on a string like "ok(1)" when parsing for a type like result. After the parser parses the "ok" part, test whether we've reached the end of the input to see if there's additional text that we haven't parsed yet.
And add more tests for parsing options and results.
Ensure that
from_str
fails on a string like "ok(1)" when parsing for a type likeresult
. After the parser parses the "ok" part, test whether we've reached the end of the input to see if there's additional text that we haven't parsed yet.And add more tests for parsing options and results.