0
  5   ˆl–ß=¿J
a,j€~ãA¸ÓªbÑ¿�þZË7#£p‚d¥!üÿÓƒ{ÒÅÐ     
test_that("one style", {
  # Need 3rd edition for testthat's comparison that works for these
  # functions. `all_equal()`, used by the 2nd edition gives a
  # deprecation warning.
  local_edition(3)
  expect_equal(combine_styles(red), red)
  expect_equal(combine_styles(bold), bold)
})

test_that("style objects", {
  withr::with_options(
    list(crayon.enabled = TRUE, crayon.colors = 256), {
      expect_equal(
        combine_styles(red, bold)("blah"),
        red(bold("blah"))
      )
      expect_equal(
        combine_styles(red, bold, underline)("foo"),
        red(bold(underline("foo")))
      )
    }
  )
})

test_that("create styles on the fly", {
  withr::with_options(
    list(crayon.enabled = TRUE, crayon.colors = 256), {
      expect_equal(
        combine_styles("darkolivegreen", bold)("blah"),
        make_style("darkolivegreen")((bold("blah")))
      )
      expect_equal(
        combine_styles(bold, "darkolivegreen", underline)("foo"),
        bold(make_style("darkolivegreen")(underline("foo")))
      )
    }
  )
})
     !ˆÌËÒ546ÇÅÐ "    !‹      ½U]oÚ0}ï¯ðü°·ä>Ö‰:ž:‚44
ˆ2MÓ´b5‰#Û�²_?C@d¬­F÷’{ãœøžs|uMÞDãÞìÛ¤�>Íî†hòåãpÐCØøÚêD³¨úÐö@„N¬-º eYúeËWz	³)$6KÛ`¬–±õ¹å˜^‘í½B$Œ»ˆˆ•6t�sñˆÔ�ZY#¹hà*3`DÎ2>™òãÇJ® W±ñŒIhWnc€‹5Ä	ÓÐî¶ßƒYÍÝ¢X»	Zª’ŽìY�¹â›-¹àÿqõv°ùŽÏ6Õ”Ø­Y*—yˆ­*0%2["£ãƒŒUn`ž²üÁ_ÊF,µ!þ>è�8Ødû7%%Z,Bü¡ŽnÆa„éˆe‚ ;�¹s˜[L‡ÌX”).Rð³àû
|/žß0ª0‘0±–…•*?BÁI¬K�Uj
æ´vœ‚D×Q„?å‹3cr;í�fÑ`ZYÂ·[Ù½ê±b:aZäER‹Ø*½Ùë®H¼Íç¦¸9¼¢½*-—‰Å!�D¾ÀŠUþ�«2¯»áœ>éƒ“€©{Ô	þÁ¨Ùh¾ó‚¦×PÐé¶:�º9ðù_©/TÊ…®3?w‚…*…vVWñü/aýóù×Ûå˜?©#ðZ\wÛ×¯ªã-´k×ë˜VñþÞHÏ°§vS�@uåü}›gÕ    5   #ˆl–Ým_J•2ÛR‚ ‚ Y¸Ø®µ1hß�þDÛ²¬Ù€#Œ´ùÔƒ}·ßÓÆÑ %    ##!/usr/bin/perl
## -----------------------------------------------------------------------
##
##   Copyright 2004-2008 H. Peter Anvin - All Rights Reserved
##
##   This program is free software; you can redistribute it and/or modify
##   it under the terms of the GNU General Public License as published by
##   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
##   Boston MA 02111-1307, USA; either version 2 of the License, or
##   (at your option) any later version; incorporated herein by reference.
##
## -----------------------------------------------------------------------

##
## ppmtolss16
##
## Convert a PNM file with max 16 colors to a simple RLE-based format:
##
## uint32 0x1413f33d    ; magic (littleendian)
## uint16 xsize		; littleendian
## uint16 ysize		; littleendian
## 16 x uint8 r,g,b	; color map, in 6-bit format (each byte is 0..63)
##
## Then, a sequence of nybbles:
##
## N	... if N is != previous pixel, one pixel of color N
## ... otherwise run sequence follows ...
## M    ... if M > 0 then run length is M
## ... otherwise run sequence is encoded in two nybbles,
##     littleendian, +16
##
## The nybble sequences are on a per-row basis; runs may not extend
## across rows and odd-nybble rows are zero-padded.
##
## At the start of row, the "previous pixel" is assumed to be zero.
##
## Usage:
##
##	ppmtolss16 [#rrggbb=i ...] < input.ppm > output.rle
##
## Command line options of the form #rrggbb=i indicate that
## the color #rrggbb (hex) should be assigned index i (decimal)
##

eval { use bytes; };
eval { binmode STDIN; };
eval { binmode STDOUT; };

$magic = 0x1413f33d;

# Get a token from the PPM header.  Ignore comments and leading
# and trailing whitespace, as is required by the spec.
# This routine eats exactly one character of trailing whitespace,
# unless it is a comment (in which case it eats the comment up
# to and including the end of line.)
sub get_token() {
    my($token, $ch);
    my($ch);

    do {
	$ch = getc(STDIN);
	return undef if ( !defined($ch) ); # EOF
	if ( $ch eq '#' ) {
	    do {
		$ch = getc(STDIN);
		return undef if ( !defined($ch) );
	    } while ( $ch ne "\n" );
	}
    } while ( $ch =~ /^[ \t\n\v\f\r]$/ );

    $token = $ch;
    while ( 1 ) {
	$ch = getc(STDIN);
	last if ( $ch =~ /^[ \t\n\v\f\r\#]$/ );
	$token .= $ch;
    }
    if ( $ch