在你的module中添加: -include_lib("eunit/include/eunit.hrl"). 这样就引入了eunit的头文件,此时你的module具有了下面的特性:自动的将以"_test"结尾的函数作为测试函数;为你的module添加并导出了test/0函数;为你提供了丰富的test macro。(自动导出test函数,是通过compile指示符的parse_transform选项进行处理)
相关文章:
-
2021-11-04
-
2021-12-08
-
2021-08-14
-
2021-06-27
-
2021-12-14
-
2022-01-19
-
2021-12-22
-
2021-11-25
猜你喜欢
-
2022-12-23
-
2021-10-14
-
2021-10-10
-
2021-12-19
-
2022-12-23
-
2021-10-17
-
2021-07-24
相关资源
-
下载
2022-12-06
-
下载
2021-06-06
-
下载
2021-06-06