antonmi / antonmi/espec

More readable syntax?

オープン
#300 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement help wanted
主要言語
Elixir
スター
813
フォーク
66
PR マージ指標
30日以内にマージされた PR はありません

説明

I don't understand why you chose to use this for your syntax:

`expect actual |> to(eq expected)`

rather than this:

`expect(actual).to.eq.(expected)`

The second seems far more readable to me. Like, obviously the pipe operator is a core part of Elixir to the point that everyone programming in Elixir is going to understand it, but simple English is still more readable, and that goes doubly so when the more English syntax ends up being almost exactly the same as Ruby and close to the same as JavaScript, and triply so when the basic point of this library is to make more readable tests than ExUnit, in a style more like RSpec.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。