Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seq同士を比較したい #73

Closed
hafuu opened this issue Feb 21, 2015 · 6 comments

Comments

@hafuu
Copy link
Contributor

commented Feb 21, 2015

let ``seq equality`` = test {
    do! assertEquals (seq { 1.. 3 }) (seq { 1..3 })
  }
Assertion Violated: seq equality
1. Expect: seq [1; 2; 3]
   Actual: seq [1; 2; 3]

これが成功するようなassertが欲しいです。

@bleis-tift

This comment has been minimized.

Copy link
Contributor

commented Feb 23, 2015

assertSeqEqualsとかそんな?
最終的にはリッチなアサートが提供される(see #4 )ので、それまでは自分でアサートを作るのがいいかも。

@hafuu

This comment has been minimized.

Copy link
Contributor Author

commented Feb 23, 2015

assertSeqEquals みたいなのです!
とりあえず自分で作って対応しました。

@pocketberserker

This comment has been minimized.

Copy link
Contributor

commented Apr 7, 2016

https://fsprojects.github.io/Paket/github-dependencies.html#Gisthttps://gist.github.com/Gab-km/240aee6f170cb75179a550c80546e5ff を使って、暫定的な実装を取得する方法もあります(Thanks @Gab-km !)。

@bleis-tift

This comment has been minimized.

Copy link
Contributor

commented Apr 8, 2016

mapしてtryFindをtryPickにしてみました。動作確認はしてません。 https://gist.github.com/bleis-tift/ae0937d95d40bdcc360475fcd3d8eecf

@Gab-km

This comment has been minimized.

Copy link
Contributor

commented Apr 8, 2016

@bleis-tift 個人的に、こっちの方がスッキリしていて良いですね。ありがとうございます!!

@pocketberserker

This comment has been minimized.

Copy link
Contributor

commented Jun 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.