Test cases for optimization fix

Add test cases that would fail in previous versions
because of the just fixed optimization.
This commit is contained in:
Salvo 'LtWorf' Tomaselli 2016-04-09 10:09:01 +02:00
parent 002aca3f68
commit dc193fee39
6 changed files with 14 additions and 0 deletions

1
test/c_not_python.query Normal file
View File

@ -0,0 +1 @@
πname (σ skill=='C' (people ⋈ skills)) - π name (σ skill=='Python' (people ⋈ skills))

4
test/c_not_python.result Normal file
View File

@ -0,0 +1,4 @@
name
eve
john
duncan

2
test/java_and_perl.query Normal file
View File

@ -0,0 +1,2 @@
πname (σ skill=='Perl' (people ⋈ skills)) π name (σ skill=='Java' (people ⋈ skills))

View File

@ -0,0 +1,3 @@
name
duncan
eve

1
test/python_and_c.query Normal file
View File

@ -0,0 +1 @@
πname (σ skill=='C' (people ⋈ skills)) ∩ π name (σ skill=='Python' (people ⋈ skills))

3
test/python_and_c.result Normal file
View File

@ -0,0 +1,3 @@
name
jack
alia