test: add format_string records for the # flag with %e of zero

オープン 初心者向け
#440 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
testing

調査の方向性

string/format_string.sltから始めて、精度がゼロでフラグ#を指定した書式指定子に関する近くのレコードを確認してください。正のゼロと負のゼロについて、指定された%eと%Eの3つのケースを追加してください。レコードが指定された出力を期待し、関連するテストスイートが成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Once #416 (zero printed with a zero exponent for %e and %g) and #427 (the # flag puts the decimal point before the exponent) are both merged, add records to string/format_string.slt for the combination, which neither PR tests:

  • %#.0e of 0.0 gives 0.e+00
  • %#.0e of -0.0 gives -0.e+00
  • %#.0E of 0.0 gives 0.E+00

Suggested in the review of #427 by Pastoray and andygrove. They merged both PRs locally and report that the output matches java.util.Formatter.

主要言語
Rust
スター
13
フォーク
31
平均マージ
2日 2時間
マージ済み PR(30日)
96

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/datafusion-spark のほかの issue

apache/datafusion-spark の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。