This commit is contained in:
Ryan Levick 2019-09-23 14:01:02 +02:00
Родитель fe54df3ed4
Коммит f757860a28
5 изменённых файлов: 12 добавлений и 15 удалений

Просмотреть файл

@ -1,11 +0,0 @@
[package]
name = "macro_tests"
version = "0.1.0"
authors = ["adrianwithah <lim.weiheng.hadrian@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
com = { path = "../" }
trybuild = "1.0.11"

Просмотреть файл

@ -7,10 +7,18 @@ edition = "2018"
[lib]
proc-macro = true
[[test]]
name = "tests"
path = "tests/progress.rs"
[dev-dependencies]
trybuild = "1.0.13"
com = { path = ".." }
[dependencies]
syn = { version = "1.0.5", features = ["full"] }
quote = "1.0"
proc-macro2 = "1.0.1"
com_interface_attribute = { path="com_interface_attribute" }
co_class = { path="co_class" }
aggr_co_class = { path="aggr_co_class" }
com_interface_attribute = { path = "com_interface_attribute" }
co_class = { path = "co_class" }
aggr_co_class = { path = "aggr_co_class" }

Просмотреть файл

@ -3,5 +3,5 @@ extern crate trybuild;
#[test]
fn test_com_interface() {
let t = trybuild::TestCases::new();
t.compile_fail("com_interface/*.rs");
t.compile_fail("tests/*.rs");
}