File: memory_set_namespace_rt32339.t

package info (click to toggle)
libcache-perl 2.10-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 428 kB
  • ctags: 301
  • sloc: perl: 2,577; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 396 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/perl

# Regression test for:
# https://rt.cpan.org/Ticket/Display.html?id=32339

use strict;
use warnings;

use Cache::Memory;
use Test::More tests => 1;

{
    my $cache = Cache::Memory->new();
    $cache->set('foo','bar');
    $cache->set_namespace("OtherNameSpace");
    # This used to die:
    $cache->set('foo','bar2');
    # TEST
    ok (1, "Program finished successfully.");
}