File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -56,17 +56,18 @@ In particular:
56
56
* Tests that return `ExitCode :: SUCCESS ` pass , and tests that return `ExitCode :: FAILURE ` fail .
57
57
* Tests that do not terminate neither pass nor fail .
58
58
59
- ```rust
60
- # use std :: io;
61
- # fn setup_the_thing () -> io :: Result <i32 > { Ok (1 ) }
62
- # fn do_the_thing (s : & i32 ) -> io :: Result <()> { Ok (()) }
63
- #[test]
64
- fn test_the_thing () -> io :: Result <()> {
65
- let state = setup_the_thing ()? ; // expected to succeed
66
- do_the_thing (& state )? ; // expected to succeed
67
- Ok (())
68
- }
69
- ```
59
+ > [! EXAMPLE ]
60
+ > ```rust
61
+ > # use std :: io;
62
+ > # fn setup_the_thing () -> io :: Result <i32 > { Ok (1 ) }
63
+ > # fn do_the_thing (s : & i32 ) -> io :: Result <()> { Ok (()) }
64
+ > #[test]
65
+ > fn test_the_thing () -> io :: Result <()> {
66
+ > let state = setup_the_thing ()? ; // expected to succeed
67
+ > do_the_thing (& state )? ; // expected to succeed
68
+ > Ok (())
69
+ > }
70
+ > ```
70
71
71
72
r [attributes . testing. ignore]
72
73
## The `ignore ` attribute
You can’t perform that action at this time.
0 commit comments