testing in Unison with googletest

2020-05-31
阅读 8 分钟
1.6k
Suppose we've written an application library in Unison, We could do some test to make sure that it works as expected.

google test 打印派生类对象

2019-09-16
阅读 4 分钟
2.4k
在Unison中使用google test时,发现EXPECT_EQ在fail时,不能打印Unison Test Language中定义的派生类的对象。于是写了个纯C++的示例,发现在只定义基类的operator<<时,无法打印派生类对象。