Joelle Maslak

撰写评论

Test2 的 is() 用于测试深度结构,它通常能满足我的需求。

基本上

use Test2::V0
is($deep_struc, $what_it_should_be, "pass");
done_testing;

当然,Test::Deep 也可以 - 只是另一种选择。

© . All rights reserved.