Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (15 sloc) 0.569 kb
use strict;
use warnings;
use Test::More;
use Text::VimColor;
# windows prints everything when STDIN is tied, don't know why
plan skip_all => "Skipped on windows"
if $^O eq 'MSWin32';
# IPC::Open3 handles this now, but keep this as a regression test for rt-50646
my $tie = 'Tie::StdHandle';
plan skip_all => "$tie required for this test"
unless eval "require $tie";
plan tests => 1;
tie *STDOUT, $tie;
my $marked = Text::VimColor->new(filetype => 'perl', string => "1\n")->marked;
is_deeply $marked, [[Constant => 1], ['', "\n"]], 'marked with tied handle';
Jump to Line
Something went wrong with that request. Please try again.