diff options
author | Jovansonlee Cesar <ivanceras@gmail.com> | 2021-08-17 21:37:15 +0800 |
---|---|---|
committer | Jovansonlee Cesar <ivanceras@gmail.com> | 2021-08-17 21:37:15 +0800 |
commit | 14ef78a8ac6c58cc18065e4939ae7c3295fe8bfb (patch) | |
tree | c9e15d27c1abfbf2c3680f65d713f62544991def | |
parent | 4151782d52cf8cbf7ac3f353b97aaf7570b71c9c (diff) |
Add notes to reexport
-rw-r--r-- | svgbob/src/lib.rs | 1 | ||||
-rw-r--r-- | svgbob/tests/styling.rs | 27 |
2 files changed, 28 insertions, 0 deletions
diff --git a/svgbob/src/lib.rs b/svgbob/src/lib.rs index 2e3cbb3..e5e4610 100644 --- a/svgbob/src/lib.rs +++ b/svgbob/src/lib.rs @@ -12,6 +12,7 @@ pub use buffer::{ Property, Settings, Signal, }; pub use point::Point; +/// reexport sauron pub use sauron; pub use sauron::{Node, Render}; diff --git a/svgbob/tests/styling.rs b/svgbob/tests/styling.rs new file mode 100644 index 0000000..64d8d00 --- /dev/null +++ b/svgbob/tests/styling.rs @@ -0,0 +1,27 @@ +#[test] + +fn test_styling() { + let bob = r#" +.----------. .----------. +|{w} A |-->|{w} B | +'----------' '----------' + +.----------. .----------. +|{w} A |<--|{w} B | +'----------' '----------' + +.----------. .----------. +|{w} A |<->|{w} B | +'----------' '----------' + +# Legend: +w = { + fill: #abadb0; +} +"#; + + let svg = svgbob::to_svg_string_compressed(bob); + + println!("{}", &svg); + panic!(); +} |