C++ 测试框架 doctest 2.0.0 发布,迁移至 C++11

栏目: 软件资讯 · 发布时间: 5年前

内容简介:C++ 测试框架 doctest 2.0.0 已发布。该版本最大的更新莫过于将代码迁移到了 C++11 了,并表示这是受 reddit 帖子中的民意调查结果的推动。 部分更新如下 moved to C++11 - motivated by the results from the p...

C++ 测试框架 doctest 2.0.0 已发布。该版本最大的更新莫过于将代码迁移到了 C++11 了,并表示这是受 reddit 帖子中的民意调查结果的推动。

部分更新如下

  • moved to C++11 - motivated by the results from the poll in this reddit thread

  • thread-safety - asserts and logging utilities can be used in multiple threads spawned from a single test case without race conditions (thread sanitizer tested) - see example

  • a complete overhaul of the internals of the framework (moving from printf-style logging to streams and changing internal structures) to allow for easier future development (including a reporter interface - work in progress)

  • given that doctest is extremely light on compile times and is meant to be used for tests side-by-side with the production code - added the ability for asserts to be used outside of a testing context (as a general purpose assert library) - example

此外,由于迁移至 C++11,使得其不再支持一些旧的编译器

  • MSVC 2008, 2010, 2012, 2013 (supported: 2015+)

  • GCC 4.4, 4.5, 4.6, 4.7 (supported: 4.8+)

  • Clang 3.3, 3.4 (supported: 3.5+)

详细更新说明和源码下载 https://github.com/onqtam/doctest/releases/tag/2.0.0


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上所述就是小编给大家介绍的《C++ 测试框架 doctest 2.0.0 发布,迁移至 C++11》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

人工智能+:AI与IA如何重塑未来

人工智能+:AI与IA如何重塑未来

[美]韩德尔·琼斯(Handel Jones) [中]张臣雄 / 机械工业出版社 / 2018-10 / 55.00

当深度学习模型引发了全世界对人工智能的再次关注时,人工智能迎来第三次高速增长,人工智能(AI)、增强现实(AR)和虚拟现实(VR)正把人类带向新的“智能增强时代”(IA),我们将在不知不觉中接纳机器智能。 针对人类社会长期存在的众多复杂的动态的难题,人机融合智能将会提供全新的解决方案,谷歌、Facebook、微软、亚马逊、腾讯、阿里巴巴、百度等平台巨头纷纷斥千亿巨资布局人工智能的尖端技术;智......一起来看看 《人工智能+:AI与IA如何重塑未来》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

在线进制转换器
在线进制转换器

各进制数互转换器