Skip to content

Commit

Permalink
Adding a test with g with some space.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mbodin committed Dec 15, 2023
1 parent 244b428 commit 0a98a80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/test_jsx.re
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ let svg = (
[<stop offset="50.1%" />],
[stop(~a=[a_offset(`Percentage(50.1))], [])],
),
( "g with space",
[<g> </g>],
[g(~a=[], [])],
),
( "text x, y",
[<text x="1 2" y="3 4" />],
[
Expand Down
4 changes: 4 additions & 0 deletions test/test_ppx.ml
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,10 @@ let svg = "svg", SvgTests.make Svg.[
[[%svg "<stop offset='50.1%'/>"]],
[stop ~a:[a_offset (`Percentage 50.1)] []] ;

"g with space",
[[%svg "<g> </g>"]],
[g ~a:[] []] ;

"text x, y",
[[%svg "<text x='1 2' y='3 4'/>"]],
[text ~a:[a_x_list [1., None; 2., None]; a_y_list [3., None; 4., None]] []] ;
Expand Down

0 comments on commit 0a98a80

Please sign in to comment.