mabdi / small-amp

Test Amplification for Pharo
MIT License
5 stars 4 forks source link

Profiling a ByteString #94

Closed mabdi closed 4 years ago

mabdi commented 4 years ago

During the profiling an argument, we add the constant to the set of samples. But for ByteString, we cant. If we do so, methods working with streams may alter the byte string and our set get invalidated (duplicate values in the set).

As a result, add a copy of the value to the set.