[librsvg: 14/28] path_parser: Test for trailing whitespace in the string



commit 5afd6401314324932066ff31867ea44240b125f3
Author: Federico Mena Quintero <federico gnome org>
Date:   Tue Jan 23 10:29:04 2018 -0600

    path_parser: Test for trailing whitespace in the string

 rust/src/path_parser.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/rust/src/path_parser.rs b/rust/src/path_parser.rs
index 04b47e9..132ba48 100644
--- a/rust/src/path_parser.rs
+++ b/rust/src/path_parser.rs
@@ -1169,21 +1169,21 @@ mod tests {
 
     #[test]
     fn handles_single_moveto () {
-        test_parser ("M 10 20",
+        test_parser ("M 10 20 ",
                      "",
                      &vec![
                          moveto (10.0, 20.0)
                      ],
                      None);
 
-        test_parser ("M10,20",
+        test_parser ("M10,20  ",
                      "",
                      &vec![
                          moveto (10.0, 20.0)
                      ],
                      None);
 
-        test_parser ("M10 20",
+        test_parser ("M10 20   ",
                      "",
                      &vec![
                          moveto (10.0, 20.0)


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