[librsvg: 2/5] Remove obsolete test
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 2/5] Remove obsolete test
- Date: Fri, 27 Mar 2020 16:59:30 +0000 (UTC)
commit 11c93b8636e9a1b8819a63d6a17b318c2d2bb44a
Author: Federico Mena Quintero <federico gnome org>
Date: Thu Mar 26 16:20:24 2020 -0600
Remove obsolete test
builder.arc no longer does computation; it just stores the
PathCommand.
rsvg_internals/src/path_builder.rs | 17 -----------------
1 file changed, 17 deletions(-)
---
diff --git a/rsvg_internals/src/path_builder.rs b/rsvg_internals/src/path_builder.rs
index cba62e59..b14c58a5 100644
--- a/rsvg_internals/src/path_builder.rs
+++ b/rsvg_internals/src/path_builder.rs
@@ -420,21 +420,4 @@ impl<'a> Iterator for PathIter<'a> {
mod tests {
use super::*;
- #[test]
- fn survives_degenerate_arcs() {
- let mut builder = PathBuilder::new();
- builder.move_to(0.0, 0.0);
- // Deliberately close to 0 to try to trigger division by 0.
- builder.arc(
- 0.0,
- 0.0,
- f64::EPSILON,
- f64::EPSILON,
- 0.0,
- LargeArc(true),
- Sweep::Positive,
- 1.0,
- 1.0,
- );
- }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]