2021-04-06 13:14:10 +03:00
|
|
|
#[test]
|
2021-05-10 13:50:52 +03:00
|
|
|
fn marine_compilation_tests() {
|
2021-04-06 13:14:10 +03:00
|
|
|
let tests = trybuild::TestCases::new();
|
|
|
|
tests.compile_fail("tests/compilation_tests/export_functions/array_inner_refs.rs");
|
|
|
|
tests.pass("tests/compilation_tests/export_functions/arrays.rs");
|
|
|
|
tests.pass("tests/compilation_tests/export_functions/ref_arrays.rs");
|
2021-04-07 23:33:20 +03:00
|
|
|
tests.compile_fail("tests/compilation_tests/export_functions/inner_vec_refs.rs");
|
2021-04-06 13:14:10 +03:00
|
|
|
tests.pass("tests/compilation_tests/export_functions/basic_types.rs");
|
|
|
|
tests.pass("tests/compilation_tests/export_functions/ref_basic_types.rs");
|
|
|
|
tests.compile_fail("tests/compilation_tests/export_functions/improper_types.rs");
|
|
|
|
|
|
|
|
tests.compile_fail("tests/compilation_tests/import_functions/arrays_out_inner_refs.rs");
|
|
|
|
tests.pass("tests/compilation_tests/import_functions/arrays.rs");
|
|
|
|
tests.pass("tests/compilation_tests/import_functions/ref_arrays.rs");
|
|
|
|
tests.pass("tests/compilation_tests/import_functions/basic_types.rs");
|
2021-04-12 20:41:04 +03:00
|
|
|
tests.pass("tests/compilation_tests/import_functions/basic_ref_types.rs");
|
2021-04-06 13:14:10 +03:00
|
|
|
tests.pass("tests/compilation_tests/import_functions/ref_basic_types.rs");
|
|
|
|
tests.compile_fail("tests/compilation_tests/import_functions/improper_types.rs");
|
|
|
|
|
|
|
|
tests.pass("tests/compilation_tests/records/basic_structs.rs");
|
|
|
|
tests.pass("tests/compilation_tests/records/empty_struct.rs");
|
2023-07-24 16:48:11 +03:00
|
|
|
tests.pass("tests/compilation_tests/records/struct_with_attribute.rs");
|
|
|
|
tests.pass("tests/compilation_tests/records/struct_with_doc_attribute.rs");
|
2021-10-07 13:13:25 +03:00
|
|
|
tests.pass("tests/compilation_tests/records/struct_with_private_fields.rs");
|
2021-04-06 13:14:10 +03:00
|
|
|
tests.compile_fail("tests/compilation_tests/records/struct_with_improper_types.rs");
|
|
|
|
tests.compile_fail("tests/compilation_tests/records/unnamed_structs.rs");
|
|
|
|
}
|