From 656e5e24007518afdf0969f9effc988b7e6c01e5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 5 Jul 2016 18:03:06 +0200 Subject: [PATCH] Add updated readme Add updated perl unit test --- README | 15 ++++++++++++--- t/siren.t | 6 ++++++ 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/README b/README index da5f794..898574b 100644 --- a/README +++ b/README @@ -1,7 +1,16 @@ -Run analyse : -./analyse sirens_fxt.txt +Run analyse.pl: +./analyse.pl sirens_fxt.txt -Run tests (need perl-Module-Build and perl-Test-More package): +Run analyse.pl tests (need perl-Module-Build and perl-Test-More package): perl Build.pl ./Build manifest ./Build test + +Build analyse.c: +gcc -m64 -std=c11 -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes analyse.c -o analyse + +Run analyse.c: +./analyse sirens_fxt.txt + +Run analyse.c tests: +./cunittest diff --git a/t/siren.t b/t/siren.t index ada24a2..bd40881 100644 --- a/t/siren.t +++ b/t/siren.t @@ -103,3 +103,9 @@ $siren = lib::siren->new(); $siren->parse('sirens_3_3.txt'); like($siren->show(), qr/^Uniques: 3, duplicates: 3$/, 'Uniques: 3, duplicates: 3'); undef $siren; + +# Test unique=77445 duplicate=2256 +$siren = lib::siren->new(); +$siren->parse('sirens_fxt.txt'); +like($siren->show(), qr/^Uniques: 77445, duplicates: 2256$/, 'Uniques: 77445, duplicates: 2256'); +undef $siren; -- 2.41.1