Sign in
android
/
toolchain
/
rustc
/
da60c8575e02ed54fcffcb7f2f9289b4705b60ff
/
.
/
src
/
librustc_data_structures
/
graph
/
iterate
/
test.rs
blob: 62e48aaec53f1bfc823a0abfe4a02d9842e655b5 [
file
] [
log
] [
blame
]
use
super
::
super
::
test
::
TestGraph
;
use
super
::*;
#[
test
]
fn
diamond_post_order
()
{
let
graph
=
TestGraph
::
new
(
0
,
&[(
0
,
1
),
(
0
,
2
),
(
1
,
3
),
(
2
,
3
)]);
let
result
=
post_order_from
(&
graph
,
0
);
assert_eq
!(
result
,
vec
![
3
,
1
,
2
,
0
]);
}