Skip to content

Commit

Permalink
Merge pull request #1082 from TornaxO7/post_04_pub_fn_test_runner
Browse files Browse the repository at this point in the history
Adding fix to make the test_runner functions pub
  • Loading branch information
phil-opp authored Dec 28, 2023
2 parents 02fe09d + 7ce356f commit 6367e93
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion blog/content/edition-2/posts/04-testing/index.fa.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ error[E0463]: can't find crate for `test`
#![test_runner(crate::test_runner)]

#[cfg(test)]
fn test_runner(tests: &[&dyn Fn()]) {
pub fn test_runner(tests: &[&dyn Fn()]) {
println!("Running {} tests", tests.len());
for test in tests {
test();
Expand Down
2 changes: 1 addition & 1 deletion blog/content/edition-2/posts/04-testing/index.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ error[E0463]: can't find crate for `test`
#![test_runner(crate::test_runner)]

#[cfg(test)]
fn test_runner(tests: &[&dyn Fn()]) {
pub fn test_runner(tests: &[&dyn Fn()]) {
println!("Running {} tests", tests.len());
for test in tests {
test();
Expand Down
2 changes: 1 addition & 1 deletion blog/content/edition-2/posts/04-testing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ To implement a custom test framework for our kernel, we add the following to our
#![test_runner(crate::test_runner)]

#[cfg(test)]
fn test_runner(tests: &[&dyn Fn()]) {
pub fn test_runner(tests: &[&dyn Fn()]) {
println!("Running {} tests", tests.len());
for test in tests {
test();
Expand Down
2 changes: 1 addition & 1 deletion blog/content/edition-2/posts/04-testing/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ error[E0463]: can't find crate for `test`
#![test_runner(crate::test_runner)]

#[cfg(test)]
fn test_runner(tests: &[&dyn Fn()]) {
pub fn test_runner(tests: &[&dyn Fn()]) {
println!("Running {} tests", tests.len());
for test in tests {
test();
Expand Down

0 comments on commit 6367e93

Please sign in to comment.