Skip to content

Commit

Permalink
This is the beginning of a program that is intended to provide test c…
Browse files Browse the repository at this point in the history
…ases in the form of a .lgx file
  • Loading branch information
LeopoldWichtel committed Oct 25, 2023
1 parent 3cd2f9f commit 736b7ca
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions logics-py/tests/output_maker.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#from logics import Logics
import os

text_str = "hello world"
numeric_int = 2
numeric_float = 2.5
numeric_int_neg = -3
numeric_float_neg = -1.5
dict_base = {numeric_int , text_str, numeric_int, numeric_float, numeric_float_neg,numeric_int_neg }
line = ""
f = open("tests/tests.lgx", "w")
for x in dict_base:
for y in dict_base:
try:
line += str(x) + "+" + str(y) + "\n"
line += f"#EXPECT: {str(x + y)} \n" # str(repr(Logics.run(x + y))))
except:
line = line + "#EXPECT:error" + "\n"


f.write(line)

0 comments on commit 736b7ca

Please sign in to comment.