Commits

Anonymous committed 210cc99

add test base

  • Participants
  • Parent commits 14c6284

Comments (0)

Files changed (3)

File tests/power.pl

+use strict;
+use warnings;
+
+sub expo{
+    my ($a, $b) = @_;
+    return $a ** $b;
+}
+

File tests/test_perl.py

+import util 
+import sys
+
+from _perl import Perl
+
+def test_perl():
+    p = Perl()
+    
+    
+

File tests/util.py

+import os
+import sys
+
+def install_perl():
+    cur = "."
+    #Ecur = os.getcwd()
+    for root, dir, files in os.walk(cur):
+        for file in files:
+            if file == "_perl.so":
+                sys.path.insert(0, root)
+
+install_perl()