| 1 | # | ||
| 2 | # Copyright (c) 2015 Christian Jaeger, copying@christianjaeger.ch | ||
| 3 | # | ||
| 4 | # This is free software, offered under either the same terms as perl 5 | ||
| 5 | # or the terms of the Artistic License version 2 or the terms of the | ||
| 6 | # MIT License (Expat version). See the file COPYING.md that came | ||
| 7 | # bundled with this file. | ||
| 8 | # | ||
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | Chj::singlequote::t -- tests for Chj::singlequote | ||
| 13 | |||
| 14 | =head1 SYNOPSIS | ||
| 15 | |||
| 16 | # is tested by `t/require_and_run_tests` | ||
| 17 | |||
| 18 | =head1 DESCRIPTION | ||
| 19 | |||
| 20 | |||
| 21 | =head1 NOTE | ||
| 22 | |||
| 23 | This is alpha software! Read the status section in the package README | ||
| 24 | or on the L<website|http://functional-perl.org/>. | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | package Chj::singlequote::t; | ||
| 29 | |||
| 30 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 31 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 32 | 1 | ▶ | use warnings FATAL => 'uninitialized'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 33 | |||
| 34 | 1 | ▶ | use Chj::singlequote ":all"; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 35 | 1 | ▶ | use Chj::TEST; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 36 | |||
| 37 | 1 | ▶ | TEST { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 38 | 1 | ▶ | with_maxlen 9, sub { singlequote "Darc's place" } |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 39 | 1 | } | |
| 40 | 1 | "'Darc\\'s...'"; | |
| 41 | |||
| 42 | 1 | 1 | |