Created
August 26, 2020 16:29
-
-
Save Grinnz/d5098c7ec50829b68cf314f571da6435 to your computer and use it in GitHub Desktop.
Protocol::Redis::XS nil tests
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Test::More; | |
use Protocol::Redis::XS; | |
my $redis = new_ok 'Protocol::Redis::XS', [api => 1]; | |
$redis->parse("\$-1\r\n"); | |
is $redis->get_message->{data}, undef, "nil bulk message"; | |
$redis->parse("*-1\r\n"); | |
is $redis->get_message->{data}, undef, "nil multi-bulk message"; | |
done_testing; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment