From: Raphaƫl Gertz Date: Tue, 5 Jul 2016 16:03:06 +0000 (+0200) Subject: Add updated readme X-Git-Tag: v0.1~3 X-Git-Url: https://git.rapsys.eu/carabistouilles/commitdiff_plain/656e5e24007518afdf0969f9effc988b7e6c01e5?hp=d905bc5e628d16c0d67a2942ace13591a7564ee5 Add updated readme Add updated perl unit test --- 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;