如何打印32个以上的值?

时间:2019-06-09 16:30:26

标签: googletest

任何人都知道如何打印32个以上的值?我的输出看起来像这样,我试图使它显示数组的其余部分:

Value of: model.GetOutput(0)
Expected: contains 64 values, where each value and its corresponding value in { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, ... } are an almost-equal pair
  Actual: { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, ... }, where the value pair (1, 2) at index #1 don't match, which is 1 from 1

1 个答案:

答案 0 :(得分:0)

它在Google测试源(kMaxCount = 32)中进行了硬编码。要更改它,您必须修改代码并重建Google Test。如果类型足够具体,您也许可以define your own printer

相关问题