summaryrefslogtreecommitdiff
path: root/Examples/test-suite/perl5/preproc_runme.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/perl5/preproc_runme.pl')
-rwxr-xr-xExamples/test-suite/perl5/preproc_runme.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/Examples/test-suite/perl5/preproc_runme.pl b/Examples/test-suite/perl5/preproc_runme.pl
new file mode 100755
index 0000000..89e25f8
--- /dev/null
+++ b/Examples/test-suite/perl5/preproc_runme.pl
@@ -0,0 +1,14 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+use Test::More tests => 6;
+BEGIN { use_ok('preproc') }
+require_ok('preproc');
+
+# adapted from ../python/preproc_runme.py
+
+is($preproc::endif, 1);
+is($preproc::define, 1);
+is($preproc::defined, 1);
+is($preproc::one * 2, $preproc::two);
+