回答編集履歴
1
リンクの修正
test
CHANGED
@@ -12,12 +12,12 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
また、フルセット版のBoost.Testには、`BOOST_TEST`マクロが用意されています。
|
15
|
+
また、フルセット版のBoost.Testには、[`BOOST_TEST`](http://www.boost.org/doc/libs/1_66_0/libs/test/doc/html/boost_test/testing_tools/boost_test_universal_macro.html)マクロが用意されています。
|
16
16
|
|
17
17
|
これを使用すると、テストが失敗した場合にのみ、その結果を、値付きで出力してくれます。(ただし、マクロに渡す値がstd::basic_ostreamで出力できない型の場合にはコンパイルエラーになるので注意が必要です)
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
|
21
|
+
サンプルコード
|
22
22
|
|
23
|
-
https://wandbox.org/permlink/7QFxtiQdxsTZZTjC
|
23
|
+
[https://wandbox.org/permlink/7QFxtiQdxsTZZTjC](https://wandbox.org/permlink/7QFxtiQdxsTZZTjC)
|