Skip to content

Commit f23e54a

Browse files
committed
Fix: Link is not clickable, inconsistent words: Property and property
1 parent 5c647ff commit f23e54a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

preprocessed-site/posts/2020/property-io.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ tags:
1414

1515
# 📣`shouldBe`などは`property`の中でも使えるので使ってください!
1616

17-
みなさんはHspecでQuickCheckを使ったProperty testを書く際、どのように書いているでしょうか?
18-
例えばHspecのマニュアル https://hspec.github.io/quickcheck.html のように、Hspecにproperty testを組み込む例として、次のような例を挙げています。
17+
みなさんはHspecでQuickCheckを使ったproperty testを書く際、どのように書いているでしょうか?
18+
例えば[Hspecのマニュアル](https://hspec.github.io/quickcheck.html)のように、Hspecにproperty testを組み込む例として、次のような例を挙げています。
1919

2020
```haskell
2121
describe "read" $ do
@@ -26,7 +26,7 @@ describe "read" $ do
2626
[こちらのコミット](https://github.com/hspec/hspec/blob/9f3f4c38952f526701a67b6e26336a3a5aec0e89/doc/quickcheck.md)の時点での話です。
2727

2828
`property`関数に渡した関数<small>(以下、「`porperty`ブロック」と呼びます)</small>の中ではHspecでおなじみの`shouldBe`などのexpectation用関数を使わず、`==`で結果を判定してますよね。
29-
このサンプルに倣って、Hspecで書いたテストにProperty testを書くときは、`==`を使ってる方が多いんじゃないでしょうか?
29+
このサンプルに倣って、Hspecで書いたテストにproperty testを書くときは、`==`を使ってる方が多いんじゃないでしょうか?
3030

3131
ところが、この記事のタイトルに書いたとおり、実際のところ`property`ブロックの中でも`shouldBe`は利用できます。
3232
つまりは、こちら👇のようにも書ける、ということです!

0 commit comments

Comments
 (0)