relational/tests_dir/multiline_optimization.py

9 lines
266 B
Python
Raw Normal View History

2020-08-26 10:15:24 -05:00
from relational.optimizer import optimize_program
a = optimize_program('''ppl_skills = people ⧓skills
ppl_skills1 = ppl_skills (people skills)
ppl_skills ppl_skills1 dates''', {})
assert a == '''optm_a = people⧓skills
optm_b = optm_adates'''