diff options
author | Zac Pullar-Strecker <[email protected]> | 2020-07-31 03:34:49 +0100 |
---|---|---|
committer | Zac Pullar-Strecker <[email protected]> | 2020-07-31 03:49:20 +0100 |
commit | 1fa842c8c9e9fed28a45fe1e3b109f2f902d128c (patch) | |
tree | 8dffd4bbc3c18ee83c9462006dede7b1ec7cef91 /xtask/tests | |
parent | 9522a06fd444c670202fd64c91d1ba62e332ff70 (diff) |
Update expect tests
Diffstat (limited to 'xtask/tests')
-rw-r--r-- | xtask/tests/tidy.rs | 7 |
1 files changed, 6 insertions, 1 deletions
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() { | |||
53 | fn check_licenses() { | 53 | fn check_licenses() { |
54 | let expected = " | 54 | let expected = " |
55 | 0BSD OR MIT OR Apache-2.0 | 55 | 0BSD OR MIT OR Apache-2.0 |
56 | Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT | ||
56 | Apache-2.0 OR BSL-1.0 | 57 | Apache-2.0 OR BSL-1.0 |
57 | Apache-2.0 OR MIT | 58 | Apache-2.0 OR MIT |
58 | Apache-2.0/MIT | 59 | Apache-2.0/MIT |
60 | Apache-2.0 | ||
59 | BSD-2-Clause | 61 | BSD-2-Clause |
60 | BSD-3-Clause | 62 | BSD-3-Clause |
61 | CC0-1.0 | 63 | CC0-1.0 |
@@ -82,7 +84,10 @@ Zlib | |||
82 | .collect::<Vec<_>>(); | 84 | .collect::<Vec<_>>(); |
83 | licenses.sort(); | 85 | licenses.sort(); |
84 | licenses.dedup(); | 86 | licenses.dedup(); |
85 | assert_eq!(licenses, expected); | 87 | assert_eq!( |
88 | licenses.iter().filter(|license| !expected.contains(license)).collect::<Vec<_>>(), | ||
89 | Vec::<&&str>::new() | ||
90 | ); | ||
86 | } | 91 | } |
87 | 92 | ||
88 | fn check_todo(path: &Path, text: &str) { | 93 | fn check_todo(path: &Path, text: &str) { |