rustc-ap-rustc_data_structures 376.0.0

Automatically published version of the package `rustc_data_structures` in the rust-lang/rust repository from commit eac09088e1a8fc8a293028764e4e84da29469205 The publishing script for this crate lives at: https://github.com/alexcrichton/rustc-auto-publish
Documentation
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]);
}