LWT should support wide strings in BOOST_TEST_EQ
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- cpp
- 领域
- testing-qa
调研方向
首先跟踪 BOOST_TEST_EQ 如何输出字符串操作数,并将提议的适配器与 quoted(x) 进行比较。确定窄化应使用 UTF-8 转码还是输出流的 codecvt facet,然后检查 BOOST_TEST_CSTR_EQ 相关的宽字符串等效项。完成的标准是宽字符串在 C++20 之前以及 C++20 中都能产生有效且可读的输出。
由索引模型根据 Issue 内容生成。
描述
Outputting wide strings to std::cout outputs the void* under C++ before 20, and hits a deleted op<< in C++20. We should make it work, either by transcoding to UTF-8, or by using the codecvt facet of the output stream.
This might entail adding an adapter such as boost::core::narrow(x) that is similar to quoted(x) in that when output to a stream, it does the necessary narrowing using codecvt. (We can't add it to io because Core is not allowed to depend on Io.)
Related: we don't have a wide equivalent of BOOST_TEST_CSTR_EQ.
- 主要语言
- C++
- 星标
- 156
- 派生
- 116
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
boostorg/core 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 2/5 1-3 小时 新手友好度 55/100
-
难度 1/5 1 小时以内 新手友好度 55/100
-
saturate_cast未关闭
难度 4/5 3-5 天 新手友好度 35/100
-
move span to boost::core::可能重新可做 @glenfe 于 513 天前认领,目前没有进行中的 PR。 未关闭
相似的 Issue
-
Jupyter kernel leaks two file descriptors per cell; after ~100 cells every cell fails with "pipe() failed"可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
Test discovery aborts on GPU builds without cuStateVec: check_cuStateVec expects a failed result but set_config() now raises RuntimeError可能已有人在做 @dmeliksetian 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 84/100
Qiskit/qiskit-aer#2495 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
sumatrapdfreader/sumatrapdf#6403 ·
-
难度 1/5 1 小时以内 新手友好度 88/100
Jumballaya/Journeyman-Engine#199 ·
维护者通常 1 天内回复
-
backend enhancement
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复