You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Syntax error for a statement with multiple lines #20
For readability I sometimes want to write a code like:
assertdo# folded because it is too long for one linefoo.bar?(a: aaaaaaaaaaaaaaaaaaaaaa,b: bbbbbbbbbbbbbbbbbbbbbb,c: ccccccccccccccccccccccccc)end
However power_assert reports a syntax error for such cases, because it just parses codes per lines. Thus, I hope that this "issue" to be fixed in these two steps:
Just add a note for the known limitation to the README.md.
Add support for such cases, and remove the note for the fixed problem.
Activity
[-]Syntax error with a statement with multiple lines[/-][+]Syntax error for a statement with multiple lines[/+]k-tsj commentedon Aug 19, 2017
I agree with your proposal.
Can you send me a PR?
power_assertには式が1行で書かれていなければいけないということ以外にもmethod_missing、superなどの戻り値が表示されないなど、いくつか制約があります。
いつかまとめないといけないなと思ってはいたので、PRは大歓迎です。
その他、細かいところを補足しておくと
TracePointにイベント発生時の桁情報を取得するAPIを追加するかといったことが必要かと思っています。どちらにせよ先は長そうです。piroor commentedon Aug 21, 2017
ありがとうございます!ひとまずREADMEの変更のみでPRを作成してみました。
Add notes for known limitations (#21)