Skip to content

Commit

Permalink
LoadBiggerSixel unit test for #2787
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jun 22, 2024
1 parent aeb6bca commit 50a81df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tests/sixels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ TEST_CASE("Sixels") {
ncvisual_destroy(ncv);
}

SUBCASE("LoadBiggerSixel") {
auto ncv = ncvisual_from_sixel("\x1bPq\"1;1;18;18#0;2;0;0;0#1;2;6;6;0#2;2;35;28;9#3;2;69;56;19#4;2;91;72;28#5;2;97;78;28#6;2;91;72;25#7;2;94;75;28#8;2;72;53;16#9;2;56;41;6#10;2;78;63;19#11;2;60;44;9#12;2;85;66;22#13;2;53;44;22#14;2;60;72;75#15;2;75;63;31#16;2;66;56;22#17;2;50;50;44#18;2;25;35;35#19;2;88;85;82#20;2;19;35;50#21;2;38;47;44#22;2;47;38;16#23;2;13;22;31#24;2;47;47;31#25;2;41;25;0#26;2;0;3;3#27;2;53;38;6#1O???@!8?@???O$#2_GCA?@!6?@?ACG_$#0NFB@#8O!8?O#0@BFN$#3?O??A?@!4?@?A??O$#5?_OGKEm}~~}mEKGO_$#7??_O?G!6?G?O_$#6??GC#9?O!6?O#6?CG$#11???__!8?__$#12!5?_!6?_$#10!6?O!4?O$#4!7?@??@-Q??C???GSSG???C??Q$#5KLC??HH@JJ@HH??CLK$#3@#7QG?@!8?@?GQ#3@$#16_#14_oww!8?wwo_#16_$#11??A@?AA!4?AA?@A$#8??@#6A???O??O???A#8@$#12!4?A?OA??AO?A$#13!4?C?!6_?C$#9!5?CCC??CCC$#15!5?O!6?O$#17!5?_!6?_-#0oo__#1_!8?_#0__oo$#26G?O#2O?_!6?_?O#26O?G$#20AG#3??O?_!4?_?O#20??GA$#18@#14FNNN@!6?@NNNF#18@$#23C#4!4?G?_OO_?G#23!4?C$#5!5?OOO__OOO$#21!5?A!6?A$#24!5?C!6?C$#8!6?G!4?G$#19!6?!6@$#22!6?A!4?A$#25!6?!6C$#9!7?G??G$#17!7?A??A$#15!8?AA$#27!8?GG\x1b\\", 1, 1);
REQUIRE(ncv);
ncvisual_destroy(ncv);
}

// remaining tests can only run with a Sixel backend
if(notcurses_check_pixel_support(nc_) <= 0){
CHECK(0 == notcurses_stop(nc_));
Expand Down

0 comments on commit 50a81df

Please sign in to comment.