diff options
| author | Teddy Wing | 2021-08-08 18:39:00 +0200 |
|---|---|---|
| committer | Teddy Wing | 2021-08-08 18:40:04 +0200 |
| commit | 965aafb4d9ff0eba748704b32ab140e9a019dde1 (patch) | |
| tree | e54fb12d8a801021f4fa02343032ecbf8f579ddd /t | |
| parent | db918a0716aaf559c3f64688c2c3ca9388172b7f (diff) | |
| download | readline-incdec-965aafb4d9ff0eba748704b32ab140e9a019dde1.tar.bz2 | |
Add a Perl module for performing the action
This allows us to more easily test the functionality and add new
behaviours.
Diffstat (limited to 't')
| -rw-r--r-- | t/100-increment-decrement.t | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/t/100-increment-decrement.t b/t/100-increment-decrement.t new file mode 100644 index 0000000..d3b1e13 --- /dev/null +++ b/t/100-increment-decrement.t @@ -0,0 +1,16 @@ +#!/usr/bin/env perl -w + +use strict; + +use Test::More; + +use lib './'; +use incdec; + +is( + incdec::incdec('test 12'), + 'test 13', + 'increments an integer' +); + +done_testing; |
