Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
BIN
third-party/vendor/pretty_assertions/examples/pretty_assertion.png
vendored
Normal file
BIN
third-party/vendor/pretty_assertions/examples/pretty_assertion.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
3
third-party/vendor/pretty_assertions/examples/pretty_assertion.rs
vendored
Normal file
3
third-party/vendor/pretty_assertions/examples/pretty_assertion.rs
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
use pretty_assertions::assert_eq;
|
||||
|
||||
include!("standard_assertion.rs");
|
||||
BIN
third-party/vendor/pretty_assertions/examples/pretty_assertion_v0_6_1.png
vendored
Normal file
BIN
third-party/vendor/pretty_assertions/examples/pretty_assertion_v0_6_1.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
BIN
third-party/vendor/pretty_assertions/examples/standard_assertion.png
vendored
Normal file
BIN
third-party/vendor/pretty_assertions/examples/standard_assertion.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 21 KiB |
26
third-party/vendor/pretty_assertions/examples/standard_assertion.rs
vendored
Normal file
26
third-party/vendor/pretty_assertions/examples/standard_assertion.rs
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#[derive(Debug, PartialEq)]
|
||||
struct Foo {
|
||||
lorem: &'static str,
|
||||
ipsum: u32,
|
||||
dolor: Result<String, String>,
|
||||
}
|
||||
|
||||
fn compare() {
|
||||
let x = Some(Foo {
|
||||
lorem: "Hello World!",
|
||||
ipsum: 42,
|
||||
dolor: Ok("hey".to_string()),
|
||||
});
|
||||
let y = Some(Foo {
|
||||
lorem: "Hello Wrold!",
|
||||
ipsum: 42,
|
||||
dolor: Ok("hey ho!".to_string()),
|
||||
});
|
||||
|
||||
assert_eq!(x, y);
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let result = std::panic::catch_unwind(compare);
|
||||
assert!(result.is_err(), "example did not panic");
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue