Skip to content

Commit

Permalink
Fixing the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mbodin committed Nov 30, 2023
1 parent 7870dc4 commit e71f853
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/test_jsx.re
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,12 @@ let svg = (
(
"fill_opacity float, circle",
[<circle cx=1 cy=2 r=3 fill_opacity=0.5 />],
[circle(~a=[a_cx (1., None); a_cy (2., None); a_r (3., None); a_fill_opacity 0.5], [])],
[circle(~a=[a_cx((1., None)), a_cy((2., None)), a_r((3., None)), a_fill_opacity(0.5)], [])],
),
(
"fill_opacity percentage, rect",
[<rect x=1 y='2' width=3 height='4' fill_opacity='50%' />],
[rect(~a=[a_cx (1., None); a_cy (2., None); a_width (3., None); a_height (4., None); a_fill_opacity 0.5], [])],
[rect(~a=[a_cx((1., None)), a_cy((2., None)), a_width((3., None)), a_height((4., None)), a_fill_opacity(0.5)], [])],
),
(
"fill_rule nonzero",
Expand Down
2 changes: 1 addition & 1 deletion test/test_ppx.ml
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ let svg = "svg", SvgTests.make Svg.[

"fill_opacity percentage, rect",
[[%svg "<rect x=1 y='2' width=3 height='4' fill-opacity='50%' />"]],
[rect ~a:[a_cx (1., None); a_cy (2., None); a_width (3., None); a_height (4., None); a_fill_opacity 0.5] []] ;
[rect ~a:[a_x (1., None); a_y (2., None); a_width (3., None); a_height (4., None); a_fill_opacity 0.5] []] ;

"fill_rule type nonzero",
[[%svg "<path fill-rule='nonzero'/>"]],
Expand Down

0 comments on commit e71f853

Please sign in to comment.