[librsvg: 3/8] rsvg-convert: Test that the export-id option indeed accepts ids with a # prefix




commit 4a111b6434348d22b1e04f1b85afe44fe3378b9c
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Jul 7 14:49:31 2021 -0500

    rsvg-convert: Test that the export-id option indeed accepts ids with a # prefix

 tests/src/cmdline/rsvg_convert.rs | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/tests/src/cmdline/rsvg_convert.rs b/tests/src/cmdline/rsvg_convert.rs
index 0ecc1c88..fa99bff1 100644
--- a/tests/src/cmdline/rsvg_convert.rs
+++ b/tests/src/cmdline/rsvg_convert.rs
@@ -748,6 +748,16 @@ fn export_id_short_option() {
         .stdout(file::is_png().with_size(100, 200));
 }
 
+#[test]
+fn export_id_with_hash_prefix() {
+    RsvgConvert::new_with_input("tests/fixtures/api/dpi.svg")
+        .arg("-i")
+        .arg("#two")
+        .assert()
+        .success()
+        .stdout(file::is_png().with_size(100, 200));
+}
+
 #[test]
 fn export_id_option_error() {
     RsvgConvert::new_with_input("tests/fixtures/api/dpi.svg")


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