Skip to content

5.2. testing #94

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

Merged
merged 4 commits into from
Feb 20, 2016
Merged

5.2. testing #94

merged 4 commits into from
Feb 20, 2016

Conversation

ykomatsu
Copy link
Contributor

No description provided.

@ykomatsu ykomatsu changed the title [WIP] 5.2. testing 5.2. testing Feb 18, 2016
@ykomatsu
Copy link
Contributor Author

@KeenS 翻訳完了しました。
レビューをお願いいたします

2つ目の変更点は、 `use` 宣言です。
ここは内部モジュールの中なので、テスト関数をスコープの中に持ち込む必要があります。
モジュールが大きい場合、これは面倒かもしれないので、ここがグロブの一般的な使い所です。
`src/lib.rs` をグロブを使うように変更しましょう。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@KeenS @ykomatsu "glob(s)" は構文関連の用語ですかね。とすると、一般的な日本語訳もありそうなのですが、知っていますか?

未訳の他の章でも何度か出てくるようなので、対訳表に載せたほうがいいかもしれません。

本リポジトリの検索結果

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます。

シェルでファイル名をまとめるときに使われる「glob」は「グロブ」とそのままカタカナにされることが多いような気がするのでそのまま「グロブ」としていました。
一般的な日本語訳があれば知りたいです。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

たしかに、シェルでは「ファイルグロブ」、Perlでは「型グロブ」とするのが多いようですね。(私はこの言葉を知りませんでした)

念のため @KeenS さんの返事を待ってからマージさせてください。

@tatsuya6502
Copy link
Member

2点コメントしました。ご確認をお願いします。

@tatsuya6502
Copy link
Member

glob ですが、調べたところ、言葉自体には大した意味がなく、現状のまま「グロブ」とするのが適切なようです。お騒がせしました。

いまの訳と対訳表の内容でOKですので、マージしますね。お疲れさまでした!

詳しい説明:
Wikipedia の "glob (computer programming)" の "Origin" の節 によると、glob の起源は初期の UNIX でワイルドカードパターンの展開に、/etc/glob という専用のコマンドを使っていたことによるもの。glob は global command の省略形。

tatsuya6502 added a commit that referenced this pull request Feb 20, 2016
@tatsuya6502 tatsuya6502 merged commit 7c0304b into rust-lang-ja:master Feb 20, 2016
@ykomatsu ykomatsu deleted the testing branch March 1, 2016 06:37
@tatsuya6502 tatsuya6502 modified the milestone: 1.6 Apr 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants