diff options
author | Federico Mena Quintero <federico@gnome.org> | 2021-07-07 14:49:31 -0500 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2021-07-07 14:49:31 -0500 |
commit | 4a111b6434348d22b1e04f1b85afe44fe3378b9c (patch) | |
tree | 2b3cc34c65352a6dbd129c398754b723a5ef035e | |
parent | 4aef73d2955269aaf1b44ddfa6b707146767656e (diff) | |
download | librsvg-4a111b6434348d22b1e04f1b85afe44fe3378b9c.tar.gz |
rsvg-convert: Test that the export-id option indeed accepts ids with a # prefix
-rw-r--r-- | tests/src/cmdline/rsvg_convert.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ -749,6 +749,16 @@ fn export_id_short_option() { } #[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") .arg("--export-id=foobar") |