Skip to content

Commit

Permalink
chore: Adjust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 committed Aug 14, 2024
1 parent d677d6a commit c2f791a
Showing 1 changed file with 43 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public void Parses_Scientific_Notation_Double()
var generatedCode = Parse("M -1.01725E-005 -1.01725e-005");
Assert.AreEqual(@"global::Uno.Media.GeometryHelper.Build(c =>
{
c.BeginFigure(new global::Windows.Foundation.Point(-1.01725E-05, -1.01725E-05), true);
c.BeginFigure(new global::Windows.Foundation.Point(-1.0172499969485216E-05, -1.0172499969485216E-05), true);
c.SetClosedState(false);
}, global::Microsoft.UI.Xaml.Media.FillRule.EvenOdd)", generatedCode);
}
Expand Down Expand Up @@ -234,52 +234,52 @@ public void Boolean_Should_Be_Read_From_The_Next_Non_Whitespace_Character_Only()

Assert.AreEqual(@"global::Uno.Media.GeometryHelper.Build(c =>
{
c.BeginFigure(new global::Windows.Foundation.Point(17.432, 11.619), true);
c.BezierTo(new global::Windows.Foundation.Point(17.456, 11.701), new global::Windows.Foundation.Point(17.471999999999998, 11.783999999999999), new global::Windows.Foundation.Point(17.471999999999998, 11.866), true, false);
c.LineTo(new global::Windows.Foundation.Point(17.471999999999998, 26.54), true, false);
c.BezierTo(new global::Windows.Foundation.Point(17.471999999999998, 26.91), new global::Windows.Foundation.Point(17.200999999999997, 27.092), new global::Windows.Foundation.Point(16.866999999999997, 26.948999999999998), true, false);
c.LineTo(new global::Windows.Foundation.Point(11.527999999999997, 24.666999999999998), true, false);
c.BezierTo(new global::Windows.Foundation.Point(11.191999999999997, 24.523), new global::Windows.Foundation.Point(10.923999999999998, 24.108999999999998), new global::Windows.Foundation.Point(10.923999999999998, 23.741), true, false);
c.LineTo(new global::Windows.Foundation.Point(10.923999999999998, 9.066), true, false);
c.BezierTo(new global::Windows.Foundation.Point(10.923999999999998, 8.698), new global::Windows.Foundation.Point(11.193999999999997, 8.515), new global::Windows.Foundation.Point(11.527999999999997, 8.657), true, false);
c.LineTo(new global::Windows.Foundation.Point(16.866999999999997, 10.94), true, false);
c.ArcTo(new global::Windows.Foundation.Point(17.136999999999997, 11.128), new global::Windows.Foundation.Size(0.898, 0.898), 0d, false, global::Microsoft.UI.Xaml.Media.SweepDirection.Clockwise, true, false);
c.BezierTo(new global::Windows.Foundation.Point(17.226999999999997, 11.297), new global::Windows.Foundation.Point(17.325999999999997, 11.461), new global::Windows.Foundation.Point(17.432, 11.618), true, false);
c.BeginFigure(new global::Windows.Foundation.Point(17.43199920654297, 11.619000434875488), true);
c.BezierTo(new global::Windows.Foundation.Point(17.45599937438965, 11.701000213623047), new global::Windows.Foundation.Point(17.472000122070312, 11.784000396728516), new global::Windows.Foundation.Point(17.472000122070312, 11.866000175476074), true, false);
c.LineTo(new global::Windows.Foundation.Point(17.472000122070312, 26.540000915527344), true, false);
c.BezierTo(new global::Windows.Foundation.Point(17.472000122070312, 26.910001754760742), new global::Windows.Foundation.Point(17.201000213623047, 27.09200096130371), new global::Windows.Foundation.Point(16.867000579833984, 26.94900131225586), true, false);
c.LineTo(new global::Windows.Foundation.Point(11.528000831604004, 24.667001724243164), true, false);
c.BezierTo(new global::Windows.Foundation.Point(11.192000389099121, 24.52300262451172), new global::Windows.Foundation.Point(10.92400074005127, 24.10900115966797), new global::Windows.Foundation.Point(10.92400074005127, 23.74100112915039), true, false);
c.LineTo(new global::Windows.Foundation.Point(10.92400074005127, 9.065999984741211), true, false);
c.BezierTo(new global::Windows.Foundation.Point(10.92400074005127, 8.697999954223633), new global::Windows.Foundation.Point(11.194001197814941, 8.515000343322754), new global::Windows.Foundation.Point(11.528000831604004, 8.656999588012695), true, false);
c.LineTo(new global::Windows.Foundation.Point(16.867000579833984, 10.9399995803833), true, false);
c.ArcTo(new global::Windows.Foundation.Point(17.137001037597656, 11.127999305725098), new global::Windows.Foundation.Size(0.8980000019073486, 0.8980000019073486), 0d, false, global::Microsoft.UI.Xaml.Media.SweepDirection.Clockwise, true, false);
c.BezierTo(new global::Windows.Foundation.Point(17.227001190185547, 11.296998977661133), new global::Windows.Foundation.Point(17.326000213623047, 11.460999488830566), new global::Windows.Foundation.Point(17.4320011138916, 11.617999076843262), true, false);
c.SetClosedState(false);
c.BeginFigure(new global::Windows.Foundation.Point(9.615, 9.07), true);
c.LineTo(new global::Windows.Foundation.Point(9.615, 23.745), true, false);
c.BezierTo(new global::Windows.Foundation.Point(9.615, 24.113), new global::Windows.Foundation.Point(9.345, 24.527), new global::Windows.Foundation.Point(9.01, 24.67), true, false);
c.LineTo(new global::Windows.Foundation.Point(3.6709999999999994, 26.952), true, false);
c.BezierTo(new global::Windows.Foundation.Point(3.3369999999999993, 27.095000000000002), new global::Windows.Foundation.Point(3.0669999999999993, 26.912000000000003), new global::Windows.Foundation.Point(3.0669999999999993, 26.544), true, false);
c.LineTo(new global::Windows.Foundation.Point(3.0669999999999993, 11.868), true, false);
c.BezierTo(new global::Windows.Foundation.Point(3.0669999999999993, 11.5), new global::Windows.Foundation.Point(3.3359999999999994, 11.086), new global::Windows.Foundation.Point(3.6709999999999994, 10.942), true, false);
c.LineTo(new global::Windows.Foundation.Point(9.011, 8.66), true, false);
c.BezierTo(new global::Windows.Foundation.Point(9.344, 8.517), new global::Windows.Foundation.Point(9.614999999999998, 8.7), new global::Windows.Foundation.Point(9.614999999999998, 9.07), true, false);
c.BeginFigure(new global::Windows.Foundation.Point(9.614999771118164, 9.069999694824219), true);
c.LineTo(new global::Windows.Foundation.Point(9.614999771118164, 23.744998931884766), true, false);
c.BezierTo(new global::Windows.Foundation.Point(9.614999771118164, 24.112998962402344), new global::Windows.Foundation.Point(9.344999313354492, 24.52699851989746), new global::Windows.Foundation.Point(9.010000228881836, 24.669998168945312), true, false);
c.LineTo(new global::Windows.Foundation.Point(3.6710002422332764, 26.951997756958008), true, false);
c.BezierTo(new global::Windows.Foundation.Point(3.3370001316070557, 27.09499740600586), new global::Windows.Foundation.Point(3.067000150680542, 26.911996841430664), new global::Windows.Foundation.Point(3.067000150680542, 26.543996810913086), true, false);
c.LineTo(new global::Windows.Foundation.Point(3.067000150680542, 11.868000030517578), true, false);
c.BezierTo(new global::Windows.Foundation.Point(3.067000150680542, 11.5), new global::Windows.Foundation.Point(3.3360002040863037, 11.086000442504883), new global::Windows.Foundation.Point(3.6710002422332764, 10.942000389099121), true, false);
c.LineTo(new global::Windows.Foundation.Point(9.011000633239746, 8.660000801086426), true, false);
c.BezierTo(new global::Windows.Foundation.Point(9.344000816345215, 8.517001152038574), new global::Windows.Foundation.Point(9.61500072479248, 8.700000762939453), new global::Windows.Foundation.Point(9.61500072479248, 9.070000648498535), true, false);
c.SetClosedState(false);
c.BeginFigure(new global::Windows.Foundation.Point(25.327999999999996, 13.243), true);
c.LineTo(new global::Windows.Foundation.Point(25.327999999999996, 23.74), true, false);
c.BezierTo(new global::Windows.Foundation.Point(25.327999999999996, 24.107999999999997), new global::Windows.Foundation.Point(25.057999999999996, 24.522), new global::Windows.Foundation.Point(24.722999999999995, 24.665999999999997), true, false);
c.LineTo(new global::Windows.Foundation.Point(19.384999999999994, 26.947999999999997), true, false);
c.BezierTo(new global::Windows.Foundation.Point(19.050999999999995, 27.090999999999998), new global::Windows.Foundation.Point(18.780999999999995, 26.907999999999998), new global::Windows.Foundation.Point(18.780999999999995, 26.537999999999997), true, false);
c.LineTo(new global::Windows.Foundation.Point(18.780999999999995, 13.216), true, false);
c.BezierTo(new global::Windows.Foundation.Point(19.795999999999996, 14.447), new global::Windows.Foundation.Point(21.482999999999997, 16.831), new global::Windows.Foundation.Point(21.916999999999994, 19.516), true, false);
c.LineTo(new global::Windows.Foundation.Point(22.228999999999996, 19.516), true, false);
c.BezierTo(new global::Windows.Foundation.Point(22.658999999999995, 16.851), new global::Windows.Foundation.Point(24.315999999999995, 14.482999999999997), new global::Windows.Foundation.Point(25.327999999999996, 13.243999999999998), true, false);
c.BeginFigure(new global::Windows.Foundation.Point(25.328001022338867, 13.243000984191895), true);
c.LineTo(new global::Windows.Foundation.Point(25.328001022338867, 23.739999771118164), true, false);
c.BezierTo(new global::Windows.Foundation.Point(25.328001022338867, 24.107999801635742), new global::Windows.Foundation.Point(25.058000564575195, 24.52199935913086), new global::Windows.Foundation.Point(24.72300148010254, 24.666000366210938), true, false);
c.LineTo(new global::Windows.Foundation.Point(19.38500213623047, 26.947999954223633), true, false);
c.BezierTo(new global::Windows.Foundation.Point(19.051002502441406, 27.090999603271484), new global::Windows.Foundation.Point(18.781002044677734, 26.90799903869629), new global::Windows.Foundation.Point(18.781002044677734, 26.538000106811523), true, false);
c.LineTo(new global::Windows.Foundation.Point(18.781002044677734, 13.215999603271484), true, false);
c.BezierTo(new global::Windows.Foundation.Point(19.796001434326172, 14.446999549865723), new global::Windows.Foundation.Point(21.483001708984375, 16.83099937438965), new global::Windows.Foundation.Point(21.917001724243164, 19.51599884033203), true, false);
c.LineTo(new global::Windows.Foundation.Point(22.229001998901367, 19.51599884033203), true, false);
c.BezierTo(new global::Windows.Foundation.Point(22.65900230407715, 16.850997924804688), new global::Windows.Foundation.Point(24.316001892089844, 14.482998847961426), new global::Windows.Foundation.Point(25.3280029296875, 13.243998527526855), true, false);
c.SetClosedState(false);
c.BeginFigure(new global::Windows.Foundation.Point(22.110999999999997, 10.853999999999997), true);
c.BezierTo(new global::Windows.Foundation.Point(20.045999999999996, 10.853999999999997), new global::Windows.Foundation.Point(18.372999999999998, 9.148999999999997), new global::Windows.Foundation.Point(18.372999999999998, 7.045999999999998), true, false);
c.BezierTo(new global::Windows.Foundation.Point(18.372999999999998, 4.943999999999997), new global::Windows.Foundation.Point(20.046, 3.2389999999999977), new global::Windows.Foundation.Point(22.110999999999997, 3.2389999999999977), true, false);
c.BezierTo(new global::Windows.Foundation.Point(24.174999999999997, 3.2389999999999977), new global::Windows.Foundation.Point(25.848999999999997, 4.943999999999997), new global::Windows.Foundation.Point(25.848999999999997, 7.045999999999998), true, false);
c.BezierTo(new global::Windows.Foundation.Point(25.848999999999997, 9.148999999999997), new global::Windows.Foundation.Point(24.174999999999997, 10.853999999999997), new global::Windows.Foundation.Point(22.110999999999997, 10.853999999999997), true, false);
c.BeginFigure(new global::Windows.Foundation.Point(22.111003875732422, 10.853998184204102), true);
c.BezierTo(new global::Windows.Foundation.Point(20.046003341674805, 10.853998184204102), new global::Windows.Foundation.Point(18.373003005981445, 9.148998260498047), new global::Windows.Foundation.Point(18.373003005981445, 7.0459980964660645), true, false);
c.BezierTo(new global::Windows.Foundation.Point(18.373003005981445, 4.943997859954834), new global::Windows.Foundation.Point(20.046003341674805, 3.2389981746673584), new global::Windows.Foundation.Point(22.111003875732422, 3.2389981746673584), true, false);
c.BezierTo(new global::Windows.Foundation.Point(24.175003051757812, 3.2389981746673584), new global::Windows.Foundation.Point(25.8490047454834, 4.943998336791992), new global::Windows.Foundation.Point(25.8490047454834, 7.0459980964660645), true, false);
c.BezierTo(new global::Windows.Foundation.Point(25.8490047454834, 9.148998260498047), new global::Windows.Foundation.Point(24.175004959106445, 10.853998184204102), new global::Windows.Foundation.Point(22.111003875732422, 10.853998184204102), true, false);
c.SetClosedState(false);
c.BeginFigure(new global::Windows.Foundation.Point(22.054, 2), true);
c.BezierTo(new global::Windows.Foundation.Point(19.285999999999998, 2), new global::Windows.Foundation.Point(17.041999999999998, 4.286), new global::Windows.Foundation.Point(17.041999999999998, 7.105), true, false);
c.BezierTo(new global::Windows.Foundation.Point(17.041999999999998, 8.483), new global::Windows.Foundation.Point(17.572999999999997, 9.798), new global::Windows.Foundation.Point(18.442999999999998, 10.716000000000001), true, false);
c.BezierTo(new global::Windows.Foundation.Point(18.442999999999998, 10.716000000000001), new global::Windows.Foundation.Point(21.371, 13.628), new global::Windows.Foundation.Point(21.930999999999997, 17.105), true, false);
c.LineTo(new global::Windows.Foundation.Point(22.209999999999997, 17.105), true, false);
c.BezierTo(new global::Windows.Foundation.Point(22.769999999999996, 13.628), new global::Windows.Foundation.Point(25.680999999999997, 10.716000000000001), new global::Windows.Foundation.Point(25.680999999999997, 10.716000000000001), true, false);
c.BezierTo(new global::Windows.Foundation.Point(26.554, 9.798000000000002), new global::Windows.Foundation.Point(27.066999999999997, 8.484000000000002), new global::Windows.Foundation.Point(27.066999999999997, 7.106000000000002), true, false);
c.BezierTo(new global::Windows.Foundation.Point(27.066999999999997, 4.286000000000001), new global::Windows.Foundation.Point(24.821999999999996, 2.0000000000000018), new global::Windows.Foundation.Point(22.053999999999995, 2.0000000000000018), true, false);
c.BeginFigure(new global::Windows.Foundation.Point(22.054000854492188, 2), true);
c.BezierTo(new global::Windows.Foundation.Point(19.286001205444336, 2), new global::Windows.Foundation.Point(17.042001724243164, 4.285999774932861), new global::Windows.Foundation.Point(17.042001724243164, 7.105000019073486), true, false);
c.BezierTo(new global::Windows.Foundation.Point(17.042001724243164, 8.482999801635742), new global::Windows.Foundation.Point(17.573001861572266, 9.79800033569336), new global::Windows.Foundation.Point(18.44300079345703, 10.715999603271484), true, false);
c.BezierTo(new global::Windows.Foundation.Point(18.44300079345703, 10.715999603271484), new global::Windows.Foundation.Point(21.371000289916992, 13.627999305725098), new global::Windows.Foundation.Point(21.931001663208008, 17.104999542236328), true, false);
c.LineTo(new global::Windows.Foundation.Point(22.21000099182129, 17.104999542236328), true, false);
c.BezierTo(new global::Windows.Foundation.Point(22.770000457763672, 13.627999305725098), new global::Windows.Foundation.Point(25.681001663208008, 10.715999603271484), new global::Windows.Foundation.Point(25.681001663208008, 10.715999603271484), true, false);
c.BezierTo(new global::Windows.Foundation.Point(26.554000854492188, 9.797999382019043), new global::Windows.Foundation.Point(27.067001342773438, 8.483999252319336), new global::Windows.Foundation.Point(27.067001342773438, 7.10599946975708), true, false);
c.BezierTo(new global::Windows.Foundation.Point(27.067001342773438, 4.285999298095703), new global::Windows.Foundation.Point(24.82200050354004, 1.9999995231628418), new global::Windows.Foundation.Point(22.054000854492188, 1.9999995231628418), true, false);
c.SetClosedState(false);
}, global::Microsoft.UI.Xaml.Media.FillRule.EvenOdd)", generatedCode);
}
Expand Down

0 comments on commit c2f791a

Please sign in to comment.