Skip to content

Commit

Permalink
Add a regression case
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbrooks committed Sep 16, 2024
1 parent f03a8ae commit cff3c4f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vgo/src/test/resources/baseline/regression_60_optimized.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="205dp" android:viewportHeight="205" android:viewportWidth="312" android:width="312dp">
<path android:fillColor="#405b6770" android:fillType="evenOdd" android:pathData="M161.851,18.849c0.323,0.174 0.311,0.436 0.355,0.651a5.237,5.237,0,0,0,3.71,4.171c1.27,0.425 2.572,0.743 3.852,1.107 0.048-0.093 0.106-0.153 0.103-0.209-0.101-1.669-0.102-1.669 1.493-1.669h1.959c-0.131,0.564-0.663,0.754-0.879,1.336 1.247,0.445 2.491,0.881 3.73,1.336 0.294,0.108 0.699,0.112 0.838,0.43 0.45,1.031 1.31,0.929 2.125,0.932 2.538,0.01 5.072,0.411 7.635,0-0.023,0.479-0.368,0.518-0.582,0.659a109.095,109.095,0,0,0,-8.142,6.043c-0.998,0.799-1.552,1.993-2.113,3.091-0.327,0.638-0.138,1.685 0.048,2.488 0.405,1.75-0.108,3.031-1.542,3.851-1.546,0.884-1.53,2.29-1.31,3.816a17.904,17.904,0,0,0,0.488,2.364c0.278,0.977-0.104,2.005-0.222,3.006-0.194,1.641 0.464,2.772 1.97,3.24 0.822,0.256 1.645,0.51 2.462,0.785 1.004,0.338 1.844,0.887 2.239,2.009a2.217,2.217,0,0,0,1.117,1.439c0.647,0.294 0.368,0.942 0.38,1.439 0.036,1.6 0.018,1.565-1.493,1.533a3940.09,3940.09,0,0,0,-24.55-0.461c-0.806-0.012-0.98-0.241-0.985-1.064-0.024-3.594-0.151-7.188-0.171-10.783-0.004-0.77-0.431-1.159-0.812-1.629-0.864-1.066-1.064-2.365-0.263-3.465 0.724-0.994 0.75-1.934 0.532-3.1a117.985,117.985,0,0,1,-1.285-9.233a4.021,4.021,0,0,1,0.013-1.215a4.617,4.617,0,0,0,-0.697-3.839c-1.112-1.524-0.978-3.286-0.958-5.044 0.023-2.012 0.006-1.985 1.853-2.042a452.637,452.637,0,0,0,7.542-0.312c1.423-0.068 1.451-0.118 1.56-1.661" android:strokeWidth="1"/>
</vector>
13 changes: 13 additions & 0 deletions vgo/src/test/resources/regression_60.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="312dp"
android:height="205dp"
android:viewportWidth="312"
android:viewportHeight="205">
<path
android:pathData="M161.851,18.849C162.174,19.023 162.162,19.285 162.206,19.5C162.649,21.694 163.971,23.02 165.916,23.671C167.186,24.096 168.488,24.414 169.768,24.778C169.816,24.685 169.874,24.625 169.871,24.569C169.77,22.9 169.769,22.9 171.364,22.9L173.323,22.9C173.192,23.464 172.66,23.654 172.444,24.236C173.691,24.681 174.935,25.117 176.174,25.572C176.468,25.68 176.873,25.684 177.012,26.002C177.462,27.033 178.322,26.931 179.137,26.934C181.675,26.944 184.209,27.345 186.772,26.934C186.749,27.413 186.404,27.452 186.19,27.593C183.371,29.448 180.694,31.518 178.048,33.636C177.05,34.435 176.496,35.629 175.935,36.727C175.608,37.365 175.797,38.412 175.983,39.215C176.388,40.965 175.875,42.246 174.441,43.066C172.895,43.95 172.911,45.356 173.131,46.882C173.246,47.681 173.396,48.461 173.619,49.246C173.897,50.223 173.515,51.251 173.397,52.252C173.203,53.893 173.861,55.024 175.367,55.492C176.189,55.748 177.012,56.002 177.829,56.277C178.833,56.615 179.673,57.164 180.068,58.286C180.282,58.894 180.564,59.444 181.185,59.725C181.832,60.019 181.553,60.667 181.565,61.164C181.601,62.764 181.583,62.729 180.072,62.697C171.889,62.525 163.706,62.357 155.522,62.236C154.716,62.224 154.542,61.995 154.537,61.172C154.513,57.578 154.386,53.984 154.366,50.389C154.362,49.619 153.935,49.23 153.554,48.76C152.69,47.694 152.49,46.395 153.291,45.295C154.015,44.301 154.041,43.361 153.823,42.195C153.251,39.144 152.868,36.056 152.538,32.962C152.496,32.562 152.47,32.135 152.551,31.747C152.844,30.349 152.686,29.048 151.854,27.908C150.742,26.384 150.876,24.622 150.896,22.864C150.919,20.852 150.902,20.879 152.749,20.822C155.263,20.744 157.777,20.63 160.291,20.51C161.714,20.442 161.742,20.392 161.851,18.849"
android:strokeWidth="1"
android:fillColor="#5B6770"
android:fillAlpha="0.25"
android:fillType="evenOdd"
android:strokeColor="#00000000"/>
</vector>

0 comments on commit cff3c4f

Please sign in to comment.