diff options
author | Guillaume Pasquet <dev@etenil.net> | 2020-03-14 16:44:47 +0000 |
---|---|---|
committer | Guillaume Pasquet <dev@etenil.net> | 2020-03-14 16:44:47 +0000 |
commit | 9d1de3f314a2f63a8f58e3ad2018c5a32472a67a (patch) | |
tree | 2c4470ea15c74de8bdff359c5d191cb850cea701 /src/world.rs | |
parent | 518ad5caf2cbf313cb784d9fd1a51632fe600fae (diff) | |
parent | 0191b3a881027bcb6d6210e010841664dae4204b (diff) |
Merge branch 'master' into fix-invisible-enemies
Diffstat (limited to 'src/world.rs')
-rw-r--r-- | src/world.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/world.rs b/src/world.rs index 9eeaaed..c577680 100644 --- a/src/world.rs +++ b/src/world.rs @@ -470,15 +470,19 @@ mod tests { } #[test] - #[should_panic] fn test_make_corridor_with_overlapping_points_should_panic() { - Corridor::make((0, 0), (0, 0)).unwrap(); + match Corridor::make((0, 0), (0, 0)) { + Ok(_) => assert!(false), + Err(_) => assert!(true), + }; } #[test] - #[should_panic] fn test_make_corridor_with_misaligned_points_should_panic() { - Corridor::make((3, 3), (5, 5)).unwrap(); + match Corridor::make((3, 3), (5, 5)) { + Ok(_) => assert!(false), + Err(_) => assert!(true), + }; } #[test] |