summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen/tests/wasm/duplicate_deps.rs
blob: 4d3506b90cd6c92be7403ffaabe477054f189748 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use wasm_bindgen::prelude::*;
use wasm_bindgen_test::*;
use wasm_bindgen_test_crate_a as a;
use wasm_bindgen_test_crate_b as b;

#[wasm_bindgen(module = "tests/wasm/duplicate_deps.js")]
extern "C" {
    fn assert_next_undefined();
    fn assert_next_ten();
}

#[wasm_bindgen_test]
fn works() {
    assert_next_undefined();
    a::test();
    assert_next_ten();
    b::test();
}