diff options
Diffstat (limited to 'PyGan/data/fact.py')
| -rw-r--r-- | PyGan/data/fact.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/PyGan/data/fact.py b/PyGan/data/fact.py new file mode 100644 index 0000000..cd6af4f --- /dev/null +++ b/PyGan/data/fact.py @@ -0,0 +1,13 @@ +# +# fact: non regression testing for lifo and pygan classes +# +import lifo +import cle2000 +my_lifo=lifo.new() +my_lifo.push(5) +my_lifo.push(int) +my_lifo.lib() +my_fact=cle2000.new('fact',my_lifo,1) +my_fact.exec() +print("factorial(5)=", my_lifo.node(1)) +print("test fact completed") |
