• [Erlang05]gen_server怎么去写eunit?

    时间:2022-06-01 20:16:59

    Prework: 怎样写一个基本的Eunit?Doc.1.加入头文件:声明此模块以”_test”结尾的函数都是测试用,并在编译时自动在这个模块里加入test()函数(当然这个可以用宏来控制)-include_lib("eunit/include/eunit.hrl").2.编写测试用例:”*_tes...

  • Erlang Mnesia数据库操作和eUnit测试

    时间:2022-06-01 17:55:33

    学erlang应该有6天了,迷迷糊糊的今天突然想起还有任务写了个基于mnesia数据库的操作 -module(agent_server).-compile(export_all).-include_lib("stdlib/include/qlc.hrl").-record(agent,{id,nam...