relational/tests_dir/multiline_optimization.py

9 lines
266 B
Python

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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_a⧓dates'''