New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latin1の変換テストを増強する #1633
Latin1の変換テストを増強する #1633
Conversation
実装されている仕様を明確するようにテストを修正
✅ Build sakura 1.0.3682 completed (commit 4eef5f8464 by @berryzplus) |
tests/unittests/test-ccodebase.cpp
Outdated
constexpr const auto& wcsOGuy = L"カナかなカナ漢字"; | ||
constexpr const auto& mbsOGuy = "????????"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
constexpr const auto& wcsOGuy = L"カナかなカナ漢字"; | |
constexpr const auto& mbsOGuy = "????????"; | |
constexpr const auto& wcsKanaKanji = L"カナかなカナ漢字"; | |
constexpr const auto& mbsKanaKanji = "????????"; |
この文字列はオーガイさんではありませんから…。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
誤記というかコピペしたままでした。
ちなみに、OGuyは O - Guy
で 「Oな野郎」 を意味します。
一応、化けるテストなもんで、バケラッタのO次郎とかけています。
O次郎は昭和のアニメ「オバケのQ太郎」に登場するキャラクターです。
だから、鷗外じゃなくてもこれでいいんだ!と頑張れなくもないんですが、直したいっす。
まちがった!これナシw |
c295b2d
to
ac1fcb3
Compare
Please retry analysis of this Pull-Request directly on SonarCloud. |
✅ Build sakura 1.0.3687 completed (commit 9c2b3f3386 by @berryzplus) |
✅ Build sakura 1.0.3688 completed (commit 862f103cfc by @berryzplus) |
レビューありがとうございます。マージしちゃいます。 |
PR の目的
Latin1の変換テストを増強します。
カテゴリ
PR の背景
#1614 で文字コード変換クラスのテストを追加しました。
一律にテスト導入できるようにCLatin1のケースも作成しましたが、詳細部分はテキトーに実装してありました。
PR のメリット
PR のデメリット (トレードオフとかあれば)
仕様・動作説明
#1614 で導入したCLatin1のテストにコード範囲
[0x80, 0xFF]
の仕様を追加します。また、 #1627 で犯したテストコード挿入位置誤りに対処します。
PR の影響範囲
テストコードの修正のみであるため、アプリの仕様・挙動に影響はありません。
テスト内容
関連 issue, PR
#1614
#1627
参考資料
https://ja.wikipedia.org/wiki/Windows-1252