From 1fa842c8c9e9fed28a45fe1e3b109f2f902d128c Mon Sep 17 00:00:00 2001 From: Zac Pullar-Strecker Date: Fri, 31 Jul 2020 14:34:49 +1200 Subject: Update expect tests --- xtask/tests/tidy.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'xtask/tests') diff --git a/xtask/tests/tidy.rs b/xtask/tests/tidy.rs index d65a2acbc..14f0c672d 100644 --- a/xtask/tests/tidy.rs +++ b/xtask/tests/tidy.rs @@ -53,9 +53,11 @@ fn rust_files_are_tidy() { fn check_licenses() { let expected = " 0BSD OR MIT OR Apache-2.0 +Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT Apache-2.0 OR BSL-1.0 Apache-2.0 OR MIT Apache-2.0/MIT +Apache-2.0 BSD-2-Clause BSD-3-Clause CC0-1.0 @@ -82,7 +84,10 @@ Zlib .collect::>(); licenses.sort(); licenses.dedup(); - assert_eq!(licenses, expected); + assert_eq!( + licenses.iter().filter(|license| !expected.contains(license)).collect::>(), + Vec::<&&str>::new() + ); } fn check_todo(path: &Path, text: &str) { -- cgit v1.2.3