[librsvg/rustification] marker.rs: Make the test assertion be (expected, computed)



commit 4b2273aadc87b66d238e0c104deb3f3f42241ed2
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Oct 26 18:37:12 2016 -0500

    marker.rs: Make the test assertion be (expected, computed)
    
    Hopefully the computed result will be easier to see if it shows up later
    in the console output...

 rust/src/marker.rs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/rust/src/marker.rs b/rust/src/marker.rs
index 0cc5df3..aa03ed1 100644
--- a/rust/src/marker.rs
+++ b/rust/src/marker.rs
@@ -211,7 +211,7 @@ mod tests {
 
     fn test_path_to_segments (path: cairo::Path, expected_segments: Vec<Segment>) {
         let segments = path_to_segments (path);
-        assert_eq! (segments, expected_segments);
+        assert_eq! (expected_segments, segments);
     }
 
     /* Single open path */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]