mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-28 16:58:01 +01:00
Simplify and speed up palette building
This commit is contained in:
@@ -37,6 +37,10 @@ public class SixelEncoderTests
|
||||
var encoder = new SixelEncoder (); // Assuming SixelEncoder is the class that contains the EncodeSixel method
|
||||
string result = encoder.EncodeSixel (pixels);
|
||||
|
||||
// Since image is only red we should only have 1 color definition
|
||||
Color c1 = Assert.Single (encoder.Quantizer.Palette);
|
||||
|
||||
Assert.Equal (new Color(255,0,0),c1);
|
||||
|
||||
Assert.Equal (expected, result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user