Fix spec for straight
Fix judgement of straight
Refactor
Modify example