From 20431706a863f92cb37dc512fef6e48d192aaf2c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:11:38 +0200 Subject: Merging upstream version 1.66.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/matches/tests/macro_use_one.rs | 11 ----------- vendor/matches/tests/use_star.rs | 10 ---------- 2 files changed, 21 deletions(-) delete mode 100644 vendor/matches/tests/macro_use_one.rs delete mode 100644 vendor/matches/tests/use_star.rs (limited to 'vendor/matches/tests') diff --git a/vendor/matches/tests/macro_use_one.rs b/vendor/matches/tests/macro_use_one.rs deleted file mode 100644 index a527a89ce..000000000 --- a/vendor/matches/tests/macro_use_one.rs +++ /dev/null @@ -1,11 +0,0 @@ -// https://github.com/SimonSapin/rust-std-candidates/issues/12 -#[macro_use(matches)] extern crate matches; - -#[test] -fn matches_works() { - let foo = Some("-12"); - assert!(matches!(foo, Some(bar) if - matches!(bar.as_bytes()[0], b'+' | b'-') && - matches!(bar.as_bytes()[1], b'0'...b'9') - )); -} diff --git a/vendor/matches/tests/use_star.rs b/vendor/matches/tests/use_star.rs deleted file mode 100644 index 58a670b93..000000000 --- a/vendor/matches/tests/use_star.rs +++ /dev/null @@ -1,10 +0,0 @@ -//! https://github.com/SimonSapin/rust-std-candidates/issues/22 - -extern crate matches; - -use matches::*; - -#[test] -fn test_assert_matches() { - assert_matches!(4, 4) -} -- cgit v1.2.3