Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avocado removes paths through CLI but not in tests #49

Open
SimonMarquis opened this issue Jul 29, 2022 · 2 comments
Open

avocado removes paths through CLI but not in tests #49

SimonMarquis opened this issue Jul 29, 2022 · 2 comments

Comments

@SimonMarquis
Copy link

SimonMarquis commented Jul 29, 2022

When trying to compress the following AVD, the CLI produces an invalid output since it removes some paths.
But compressing the same input through the project's test framework, the output is valid.

Input (already compressed)
<vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt" android:width="135dp" android:height="40dp" android:viewportWidth="135" android:viewportHeight="40">
<path android:fillColor="#1A1A1A" android:pathData="M130,40H5c-2.8,0 -5,-2.2 -5,-5V5c0,-2.8 2.2,-5 5,-5h125c2.8,0 5,2.2 5,5v30C135,37.7 132.8,40 130,40z"/>
<path android:pathData="M130,0.8c2.3,0 4.2,1.9 4.2,4.2v30c0,2.3 -1.9,4.2 -4.2,4.2H5c-2.3,0 -4.2,-1.9 -4.2,-4.2V5c0,-2.3 1.9,-4.2 4.2,-4.2H130M130,0H5C2.2,0 0,2.2 0,5v30c0,2.8 2.2,5 5,5h125c2.8,0 5,-2.2 5,-5V5C135,2.3 132.8,0 130,0L130,0z" android:fillColor="#8191A0"/>
<path android:pathData="M68.1,21.8c-2.4,0 -4.3,1.8 -4.3,4.3c0,2.4 1.9,4.3 4.3,4.3s4.3,-1.8 4.3,-4.3C72.4,23.5 70.5,21.8 68.1,21.8zM68.1,28.6c-1.3,0 -2.4,-1.1 -2.4,-2.6s1.1,-2.6 2.4,-2.6s2.4,1 2.4,2.6C70.5,27.5 69.4,28.6 68.1,28.6zM58.8,21.8c-2.4,0 -4.3,1.8 -4.3,4.3c0,2.4 1.9,4.3 4.3,4.3s4.3,-1.8 4.3,-4.3C63.1,23.5 61.2,21.8 58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-4.7h2.6c2.1,0 4.1,-1.5 4.1,-3.9S103.9,17.5 101.8,17.5zM101.9,23.5h-2.7v-4.3h2.7c1.4,0 2.2,1.2 2.2,2.1C104,22.4 103.2,23.5 101.9,23.5zM113.4,21.7c-1.4,0 -2.8,0.6 -3.3,1.9l1.7,0.7c0.4,-0.7 1,-0.9 1.7,-0.9c1,0 1.9,0.6 2,1.6v0.1c-0.3,-0.2 -1.1,-0.5 -1.9,-0.5c-1.8,0 -3.6,1 -3.6,2.8c0,1.7 1.5,2.8 3.1,2.8c1.3,0 1.9,-0.6 2.4,-1.2h0.1v1h1.8v-4.8C117.2,23 115.5,21.7 113.4,21.7zM113.2,28.6c-0.6,0 -1.5,-0.3 -1.5,-1.1c0,-1 1.1,-1.3 2,-1.3c0.8,0 1.2,0.2 1.7,0.4C115.2,27.8 114.2,28.6 113.2,28.6zM123.7,22l-2.1,5.4h-0.1l-2.2,-5.4h-2l3.3,7.6l-1.9,4.2h1.9l5.1,-11.8H123.7zM106.9,30h1.9V17.5h-1.9V30z" android:fillColor="#FFF"/>
<path android:pathData="M10.4,7.5c-0.3,0.3 -0.5,0.8 -0.5,1.4V31c0,0.6 0.2,1.1 0.5,1.4l0.1,0.1l12.4,-12.4V20v-0.1L10.4,7.5L10.4,7.5z">
    <aapt:attr name="android:fillColor">
        <gradient android:startY="8.679996" android:startX="21.77" android:endY="25.462397" android:endX="4.9876" android:type="linear">
            <item android:offset="0" android:color="#FF00A0FF"/>
            <item android:offset="0.00657445" android:color="#FF00A1FF"/>
            <item android:offset="0.2601" android:color="#FF00BEFF"/>
            <item android:offset="0.5122" android:color="#FF00D2FF"/>
            <item android:offset="0.7604" android:color="#FF00DFFF"/>
            <item android:offset="1" android:color="#FF00E3FF"/>
        </gradient>
    </aapt:attr>
</path>
<path android:pathData="M27,24.3l-4.1,-4.1V20v-0.1l4.1,-4.1l0.1,0.1l4.9,2.8c1.4,0.8 1.4,2.1 0,2.9L27,24.3L27,24.3z">
    <aapt:attr name="android:fillColor">
        <gradient android:startY="20.049995" android:startX="33.8344" android:endY="20.049995" android:endX="9.6375" android:type="linear">
            <item android:offset="0" android:color="#FFFFE000"/>
            <item android:offset="0.4087" android:color="#FFFFBD00"/>
            <item android:offset="0.7754" android:color="#FFFFA500"/>
            <item android:offset="1" android:color="#FFFF9C00"/>
        </gradient>
    </aapt:attr>
</path>
<path android:pathData="M27.1,24.2L22.9,20L10.4,32.5c0.5,0.5 1.2,0.5 2.1,0.1L27.1,24.2">
    <aapt:attr name="android:fillColor">
        <gradient android:startY="22.284496" android:startX="24.8155" android:endY="45.042797" android:endX="2.0572" android:type="linear">
            <item android:offset="0" android:color="#FFFF3A44"/>
            <item android:offset="1" android:color="#FFC31162"/>
        </gradient>
    </aapt:attr>
</path>
<path android:pathData="M27.1,15.8L12.5,7.5c-0.9,-0.5 -1.6,-0.4 -2.1,0.1L22.9,20L27.1,15.8z">
    <aapt:attr name="android:fillColor">
        <gradient android:startY="0.21179575" android:startX="7.2617" android:endY="10.374296" android:endX="17.4243" android:type="linear">
            <item android:offset="0" android:color="#FF32A071"/>
            <item android:offset="0.0685" android:color="#FF2DA771"/>
            <item android:offset="0.4762" android:color="#FF15CF74"/>
            <item android:offset="0.8009" android:color="#FF06E775"/>
            <item android:offset="1" android:color="#FF00F076"/>
        </gradient>
    </aapt:attr>
</path>
<path android:fillColor="#FF000000" android:pathData="M27,24.1l-14.5,8.2c-0.8,0.5 -1.5,0.4 -2,0l0,0l-0.1,0.1l0,0l0.1,0.1l0,0c0.5,0.4 1.2,0.5 2,0L27,24.1L27,24.1z" android:strokeAlpha="0.2" android:fillAlpha="0.2"/>
<path android:fillColor="#FF000000" android:pathData="M10.4,32.3C10.1,32 10,31.5 10,30.9V31c0,0.6 0.2,1.1 0.5,1.4v-0.1H10.4z" android:strokeAlpha="0.12" android:fillAlpha="0.12"/>
<path android:fillColor="#FF000000" android:pathData="M32,21.3l-5,2.8l0.1,0.1L32,21.3c0.7,-0.3 1,-0.8 1,-1.3l0,0C33,20.5 32.6,20.9 32,21.3z" android:strokeAlpha="0.12" android:fillAlpha="0.12"/>
<path android:pathData="M12.5,7.6L32,18.7c0.6,0.4 1,0.8 1,1.3l0,0c0,-0.5 -0.3,-1 -1,-1.4L12.5,7.5C11.1,6.7 10,7.4 10,9v0.1C10,7.5 11.1,6.8 12.5,7.6z" android:strokeAlpha="0.25" android:fillColor="#FFF" android:fillAlpha="0.25"/>
<path android:pathData="M41.3,13V7h1.8c0.9,0 1.7,0.3 2.2,0.8c0.6,0.6 0.8,1.3 0.8,2.2c0,0.9 -0.3,1.6 -0.8,2.2C44.8,12.7 44,13 43.1,13H41.3zM42,12.3h1.1c0.7,0 1.2,-0.2 1.6,-0.6c0.4,-0.4 0.6,-1 0.6,-1.7s-0.2,-1.3 -0.6,-1.7c-0.4,-0.4 -1,-0.6 -1.6,-0.6H42V12.3z" android:strokeWidth="0.2" android:fillColor="#FFF" android:strokeColor="#FFF"/>
<path android:pathData="M47.2,13V7H48v6H47.2z" android:strokeWidth="0.2" android:fillColor="#FFF" android:strokeColor="#FFF"/>
<path android:pathData="M51.1,13.1c-0.4,0 -0.9,-0.1 -1.3,-0.4c-0.4,-0.3 -0.7,-0.7 -0.8,-1.2l0.7,-0.3c0.1,0.3 0.3,0.6 0.5,0.8c0.3,0.2 0.6,0.3 0.9,0.3c0.3,0 0.6,-0.1 0.9,-0.3c0.2,-0.2 0.4,-0.4 0.4,-0.7c0,-0.3 -0.1,-0.6 -0.4,-0.8c-0.2,-0.2 -0.6,-0.4 -1.1,-0.5c-0.5,-0.2 -0.9,-0.4 -1.2,-0.6c-0.3,-0.3 -0.4,-0.6 -0.4,-1s0.2,-0.8 0.5,-1.1c0.3,-0.3 0.8,-0.5 1.3,-0.5s0.9,0.1 1.2,0.4s0.5,0.5 0.6,0.8l-0.7,0.3c-0.1,-0.2 -0.2,-0.4 -0.4,-0.5c-0.2,-0.2 -0.5,-0.2 -0.8,-0.2s-0.5,0.1 -0.8,0.2C50.1,8 50,8.2 50,8.5c0,0.2 0.1,0.4 0.3,0.6s0.5,0.3 0.9,0.4c0.3,0.1 0.5,0.2 0.7,0.3c0.2,0.1 0.4,0.2 0.6,0.4c0.2,0.1 0.4,0.3 0.5,0.6c0.1,0.2 0.2,0.5 0.2,0.8s-0.1,0.6 -0.2,0.8c-0.1,0.2 -0.3,0.4 -0.5,0.5c-0.3,0 -0.5,0.1 -0.7,0.1C51.5,13.1 51.3,13.1 51.1,13.1z" android:strokeWidth="0.2" android:fillColor="#FFF" android:strokeColor="#FFF"/>
<path android:pathData="M55,13h-0.8V7h2c0.5,0 0.9,0.2 1.3,0.5s0.6,0.8 0.6,1.3s-0.2,0.9 -0.6,1.3c-0.4,0.3 -0.8,0.5 -1.3,0.5H55V13zM55,9.8h1.3c0.3,0 0.6,-0.1 0.8,-0.3c0.2,-0.2 0.3,-0.5 0.3,-0.7c0,-0.3 -0.1,-0.5 -0.3,-0.7c-0.2,-0.2 -0.5,-0.3 -0.8,-0.3H55V9.8z" android:strokeWidth="0.2" android:fillColor="#FFF" android:strokeColor="#FFF"/>
<path android:pathData="M64,12.2c-0.6,0.6 -1.3,0.9 -2.2,0.9c-0.9,0 -1.6,-0.3 -2.2,-0.9s-0.9,-1.3 -0.9,-2.2s0.3,-1.6 0.9,-2.2s1.3,-0.9 2.2,-0.9c0.9,0 1.6,0.3 2.2,0.9s0.9,1.3 0.9,2.2C64.9,10.9 64.6,11.6 64,12.2zM60.2,11.7c0.4,0.4 1,0.7 1.6,0.7s1.2,-0.2 1.6,-0.7c0.4,-0.4 0.7,-1 0.7,-1.7s-0.2,-1.3 -0.7,-1.7c-0.4,-0.4 -1,-0.7 -1.6,-0.7s-1.2,0.2 -1.6,0.7c-0.4,0.4 -0.7,1 -0.7,1.7S59.7,11.3 60.2,11.7z" android:strokeWidth="0.2" android:fillColor="#FFF" android:strokeColor="#FFF"/>
<path android:pathData="M65.9,13V7h0.9l2.9,4.7l0,0v-1.2V7h0.8v6h-0.8l-3.1,-4.9l0,0v1.2V13H65.9z" android:strokeWidth="0.2" android:fillColor="#FFF" android:strokeColor="#FFF"/>
<path android:pathData="M71.9,13V7h0.8v6H71.9z" android:strokeWidth="0.2" android:fillColor="#FFF" android:strokeColor="#FFF"/>
<path android:pathData="M74.1,13V7h2.2c0.5,0 0.9,0.2 1.2,0.5C77.8,7.8 78,8.2 78,8.7c0,0.3 -0.1,0.5 -0.2,0.8c-0.1,0.2 -0.3,0.4 -0.6,0.5l0,0c0.3,0.1 0.5,0.3 0.7,0.5s0.3,0.5 0.3,0.9c0,0.5 -0.2,0.9 -0.5,1.2c-0.4,0.3 -0.8,0.5 -1.3,0.5h-2.3V13zM74.9,9.6h1.4c0.3,0 0.5,-0.1 0.7,-0.3c0.2,-0.2 0.3,-0.4 0.3,-0.6S77.1,8.2 77,8c-0.2,-0.2 -0.4,-0.3 -0.7,-0.3h-1.4V9.6zM74.9,12.3h1.6c0.3,0 0.5,-0.1 0.7,-0.3c0.2,-0.2 0.3,-0.4 0.3,-0.7c0,-0.2 -0.1,-0.5 -0.3,-0.7c-0.2,-0.2 -0.4,-0.3 -0.7,-0.3H75L74.9,12.3L74.9,12.3z" android:strokeWidth="0.2" android:fillColor="#FFF" android:strokeColor="#FFF"/>
<path android:pathData="M79.2,13V7H80v5.3h2.6V13H79.2z" android:strokeWidth="0.2" android:fillColor="#FFF" android:strokeColor="#FFF"/>
<path android:pathData="M87.1,7.7h-2.7v1.9h2.5v0.7h-2.5v1.9h2.7V13h-3.5V7h3.5V7.7z" android:strokeWidth="0.2" android:fillColor="#FFF" android:strokeColor="#FFF"/>
<path android:pathData="M91.7,13.1c-0.4,0 -0.9,-0.1 -1.3,-0.4s-0.7,-0.7 -0.8,-1.2l0.7,-0.3c0.1,0.3 0.3,0.6 0.5,0.8c0.3,0.2 0.6,0.3 0.9,0.3s0.6,-0.1 0.9,-0.3c0.2,-0.2 0.4,-0.4 0.4,-0.7c0,-0.3 -0.1,-0.6 -0.4,-0.8c-0.2,-0.2 -0.6,-0.4 -1.1,-0.5c-0.5,-0.2 -0.9,-0.4 -1.2,-0.6c-0.3,-0.3 -0.4,-0.6 -0.4,-1s0.2,-0.8 0.5,-1.1c0.3,-0.3 0.8,-0.5 1.3,-0.5s0.9,0.1 1.2,0.4c0.3,0.3 0.5,0.5 0.6,0.8l-0.7,0.3c-0.1,-0.2 -0.2,-0.4 -0.4,-0.5c-0.2,-0.2 -0.5,-0.2 -0.8,-0.2s-0.5,0.1 -0.8,0.2c-0.2,0.2 -0.3,0.4 -0.3,0.6s0.1,0.4 0.3,0.6c0.2,0.2 0.5,0.3 0.9,0.4c0.3,0.1 0.5,0.2 0.7,0.3c0.2,0.1 0.4,0.2 0.6,0.4c0.2,0.1 0.4,0.3 0.5,0.6c0.1,0.2 0.2,0.5 0.2,0.8s-0.1,0.6 -0.2,0.8c-0.1,0.2 -0.3,0.4 -0.5,0.5s-0.4,0.2 -0.6,0.3C92.2,13.1 92,13.1 91.7,13.1z" android:strokeWidth="0.2" android:fillColor="#FFF" android:strokeColor="#FFF"/>
<path android:pathData="M96.9,13.1c-0.7,0 -1.2,-0.2 -1.6,-0.7c-0.4,-0.4 -0.6,-1 -0.6,-1.7V7h0.8v3.8c0,0.5 0.1,0.9 0.4,1.2c0.2,0.3 0.6,0.4 1.1,0.4s0.8,-0.1 1.1,-0.4c0.2,-0.3 0.4,-0.7 0.4,-1.2V7h0.8v3.8c0,0.7 -0.2,1.3 -0.6,1.7C98.2,12.9 97.6,13.1 96.9,13.1z" android:strokeWidth="0.2" android:fillColor="#FFF" android:strokeColor="#FFF"/>
<path android:pathData="M100.4,13V7h2c0.5,0 0.9,0.2 1.3,0.5s0.6,0.8 0.6,1.3c0,0.4 -0.1,0.8 -0.4,1.1c-0.3,0.3 -0.6,0.5 -1,0.6l0,0l1.7,2.4l0,0h-0.9l-1.6,-2.4h-0.9V13H100.4zM101.2,9.8h1.2c0.3,0 0.6,-0.1 0.8,-0.3c0.2,-0.2 0.3,-0.5 0.3,-0.8s-0.1,-0.5 -0.3,-0.7c-0.2,-0.2 -0.5,-0.3 -0.8,-0.3h-1.3v2.1H101.2z" android:strokeWidth="0.2" android:fillColor="#FFF" android:strokeColor="#FFF"/>
</vector>
CLI output (invalid)
<vector xmlns:android="http://schemas.android.com/apk/res/android" xmlns:aapt="http://schemas.android.com/aapt" android:width="135dp" android:height="40dp" android:viewportWidth="135" android:viewportHeight="40">
    <path android:fillColor="#1A1A1A" android:pathData="M130 40H5c-2.8 0-5-2.2-5-5V5c0-2.8 2.2-5 5-5h125c2.8 0 5 2.2 5 5v30c0 2.7-2.2 5-5 5z"/>
    <path android:pathData="M130 0.8c2.3 0 4.2 1.9 4.2 4.2v30c0 2.3-1.9 4.2-4.2 4.2H5c-2.3 0-4.2-1.9-4.2-4.2V5c0-2.3 1.9-4.2 4.2-4.2h125m0-0.8H5C2.2 0 0 2.2 0 5v30c0 2.8 2.2 5 5 5h125c2.8 0 5-2.2 5-5V5c0-2.7-2.2-5-5-5z" android:fillColor="#8191A0"/>
    <path android:pathData="M68.1 21.8c-2.4 0-4.3 1.8-4.3 4.3 0 2.4 1.9 4.3 4.3 4.3s4.3-1.8 4.3-4.3c0-2.6-1.9-4.3-4.3-4.3zm0 6.8c-1.3 0-2.4-1.1-2.4-2.6s1.1-2.6 2.4-2.6 2.4 1 2.4 2.6c0 1.5-1.1 2.6-2.4 2.6zm-9.3-6.8c-2.4 0-4.3 1.8-4.3 4.3 0 2.4 1.9 4.3 4.3 4.3s4.3-1.8 4.3-4.3c0-2.6-1.9-4.3-4.3-4.3zm0 6.8c-1.3 0-2.4-1.1-2.4-2.6s1.1-2.6 2.4-2.6 2.4 1 2.4 2.6c0 1.5-1.1 2.6-2.4 2.6zm-11.1-5.5v1.8H52c-0.1 1-0.5 1.8-1 2.3-0.6 0.6-1.6 1.3-3.3 1.3-2.7 0-4.7-2.1-4.7-4.8s2.1-4.8 4.7-4.8c1.4 0 2.5 0.6 3.3 1.3l1.3-1.3c-1.1-1-2.5-1.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.3 0.8 0 1.2 0.2 1.7 0.4-0.2 1.2-1.2 2-2.2 2zm10.5-6.6l-2.1 5.4h-0.1l-2.2-5.4h-2l3.3 7.6-1.9 4.2h1.9l5.1-11.8h-2zm-16.8 8h1.9V17.5h-1.9V30z" android:fillColor="#FFF"/>
    <path android:pathData="M10.4 7.5c-0.3 0.3-0.5 0.8-0.5 1.4V31c0 0.6 0.2 1.1 0.5 1.4l0.1 0.1 12.4-12.4v-0.2L10.4 7.5zM27 24.3l-4.1-4.1v-0.3l4.1-4.1 0.1 0.1 4.9 2.8c1.4 0.8 1.4 2.1 0 2.9l-5 2.7z">
        <aapt:attr name="android:fillColor">
            <gradient android:startY="8.679996" android:startX="21.77" android:endY="25.462397" android:endX="4.9876" android:type="linear">
                <item android:offset="0" android:color="#FF00A0FF"/>
                <item android:offset="0.00657445" android:color="#FF00A1FF"/>
                <item android:offset="0.2601" android:color="#FF00BEFF"/>
                <item android:offset="0.5122" android:color="#FF00D2FF"/>
                <item android:offset="0.7604" android:color="#FF00DFFF"/>
                <item android:offset="1" android:color="#FF00E3FF"/>
            </gradient>
        </aapt:attr>
    </path>
    <path android:pathData="M27.1 24.2L22.9 20 10.4 32.5c0.5 0.5 1.2 0.5 2.1 0.1l14.6-8.4m0-8.4L12.5 7.5c-0.9-0.5-1.6-0.4-2.1 0.1L22.9 20l4.2-4.2z">
        <aapt:attr name="android:fillColor">
            <gradient android:startY="22.284496" android:startX="24.8155" android:endY="45.042797" android:endX="2.0572" android:type="linear">
                <item android:offset="0" android:color="#FFFF3A44"/>
                <item android:offset="1" android:color="#FFC31162"/>
            </gradient>
        </aapt:attr>
    </path>
    <path android:fillColor="#FF000000" android:pathData="M27 24.1l-14.5 8.2c-0.8 0.5-1.5 0.4-2 0l-0.1 0.1 0.1 0.1c0.5 0.4 1.2 0.5 2 0L27 24.1z" android:strokeAlpha="0.2" android:fillAlpha="0.2"/>
    <path android:fillColor="#FF000000" android:pathData="M10.4 32.3C10.1 32 10 31.5 10 30.9V31c0 0.6 0.2 1.1 0.5 1.4v-0.1h-0.1zm21.6-11l-5 2.8 0.1 0.1 4.9-2.9c0.7-0.3 1-0.8 1-1.3 0 0.5-0.4 0.9-1 1.3z" android:strokeAlpha="0.12" android:fillAlpha="0.12"/>
    <path android:pathData="M12.5 7.6L32 18.7c0.6 0.4 1 0.8 1 1.3 0-0.5-0.3-1-1-1.4L12.5 7.5C11.1 6.7 10 7.4 10 9v0.1c0-1.6 1.1-2.3 2.5-1.5z" android:strokeAlpha="0.25" android:fillColor="#FFF" android:fillAlpha="0.25"/>
    <path android:pathData="M41.3 13V7h1.8c0.9 0 1.7 0.3 2.2 0.8 0.6 0.6 0.8 1.3 0.8 2.2 0 0.9-0.3 1.6-0.8 2.2-0.5 0.5-1.3 0.8-2.2 0.8h-1.8zm0.7-0.7h1.1c0.7 0 1.2-0.2 1.6-0.6 0.4-0.4 0.6-1 0.6-1.7s-0.2-1.3-0.6-1.7c-0.4-0.4-1-0.6-1.6-0.6H42v4.6zm5.2 0.7V7H48v6h-0.8zm3.9 0.1c-0.4 0-0.9-0.1-1.3-0.4-0.4-0.3-0.7-0.7-0.8-1.2l0.7-0.3c0.1 0.3 0.3 0.6 0.5 0.8 0.3 0.2 0.6 0.3 0.9 0.3 0.3 0 0.6-0.1 0.9-0.3 0.2-0.2 0.4-0.4 0.4-0.7 0-0.3-0.1-0.6-0.4-0.8-0.2-0.2-0.6-0.4-1.1-0.5-0.5-0.2-0.9-0.4-1.2-0.6-0.3-0.3-0.4-0.6-0.4-1s0.2-0.8 0.5-1.1c0.3-0.3 0.8-0.5 1.3-0.5s0.9 0.1 1.2 0.4 0.5 0.5 0.6 0.8l-0.7 0.3c-0.1-0.2-0.2-0.4-0.4-0.5-0.2-0.2-0.5-0.2-0.8-0.2s-0.5 0.1-0.8 0.2C50.1 8 50 8.2 50 8.5c0 0.2 0.1 0.4 0.3 0.6s0.5 0.3 0.9 0.4c0.3 0.1 0.5 0.2 0.7 0.3 0.2 0.1 0.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-1.1 0.6-1.8 0.6zm3.5-0.1V7h2c0.5 0 0.9 0.2 1.3 0.5s0.6 0.8 0.6 1.3c0 0.4-0.1 0.8-0.4 1.1-0.3 0.3-0.6 0.5-1 0.6l1.7 2.4h-0.9l-1.6-2.4h-0.9V13h-0.8zm0.8-3.2h1.2c0.3 0 0.6-0.1 0.8-0.3 0.2-0.2 0.3-0.5 0.3-0.8s-0.1-0.5-0.3-0.7c-0.2-0.2-0.5-0.3-0.8-0.3h-1.3v2.1h0.1z" android:strokeWidth="0.2" android:fillColor="#FFF" android:strokeColor="#FFF"/>
</vector>
Input (compressed) Output (invalid)
image image

Any idea why the CLI and the tests do not produce the same output?

@emartynov
Copy link

Not sure what this means by compressing the same input through the project's test framework. Can you give more details? What framework, how does it run avocado?

@SimonMarquis
Copy link
Author

I simply replaced one of the test input of this codebase test/plugins/... and ran the tests npm run test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants