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
Translate post-04 to Japnese #903
Conversation
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.
By this, we've now translated the "Bare Bones" part of the blog, yay 🎉
Left some suggestions/comments as usual otherwise looks great to me.
Thanks for your work!
|
||
<div class="note"> | ||
|
||
**訳注:** [最小のカーネル][_A Minimal Rust Kernel_]の記事が日本語に翻訳されたのはこの日より後なので、あなたがこのサイトを日本語で閲覧している場合は特に問題はありません。 |
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.
👍
|
||
`should_fail`関数を`_start`関数から直接呼び出して、もしリターンしたら失敗の終了コードで終了するようにしました。今`cargo test --test should_panic`を実行しても、以前と全く同じように振る舞います。 | ||
|
||
`should_panic`なテストを作るとき以外にも`harness`属性は有用なことがあります。例えば、それぞれのテスト関数が副作用を持っており、指定された順番で実行されないといけないときなどです。 |
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.
note: translation for "for complex integration tests" is missing but it would be okay as we know that context (and someone maybe finds it redundant).
Co-authored-by: Yuki Okushi <huyuumi.dev@gmail.com>
@JohnTitor Thank you very much! |
Yeah, that's fine, thanks! @phil-opp It looks good on my end. |
Thanks a lot to both of you! |
The title says it all.
@JohnTitor Could you review it for me?