Merge pull request #80 from microsoft/tests-v2

Tests Fixes
This commit is contained in:
Ryan Levick 2019-09-23 14:00:02 +00:00 коммит произвёл GitHub
Родитель fe54df3ed4 abacd5b75c
Коммит 0c26d37462
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 13 добавлений и 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"

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

@ -3,14 +3,23 @@ name = "macros"
version = "0.1.0"
authors = ["adrianwithah <lim.weiheng.hadrian@gmail.com>"]
edition = "2018"
autotests = false
[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/no_supertrait.rs");
}