Skip to content

Commit

Permalink
Adding fix to make the test_runner functions pub
Browse files Browse the repository at this point in the history
  • Loading branch information
TornaxO7 committed Feb 23, 2022
1 parent 5b2c60e commit 7ce356f
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 @@ -75,7 +75,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 7ce356f

Please sign in to comment.