moved tests directory

This commit is contained in:
Salvo 'LtWorf' Tomaselli
2017-06-24 11:35:46 +02:00
parent 2d9bbf39f0
commit fa08e007db
136 changed files with 2 additions and 2 deletions

1
tests_dir/0.fail Normal file
View File

@@ -0,0 +1 @@
σ , (people)

1
tests_dir/1.fail Normal file
View File

@@ -0,0 +1 @@
((

1
tests_dir/10.fail Normal file
View File

@@ -0,0 +1 @@
people - skills

1
tests_dir/11.fail Normal file
View File

@@ -0,0 +1 @@
skills - people

1
tests_dir/12.fail Normal file
View File

@@ -0,0 +1 @@
ρ i➡id(people)

1
tests_dir/13.fail Normal file
View File

@@ -0,0 +1 @@
π i,id(people)

1
tests_dir/14.fail Normal file
View File

@@ -0,0 +1 @@
π (people)

1
tests_dir/15.fail Normal file
View File

@@ -0,0 +1 @@
πpeople

1
tests_dir/16.fail Normal file
View File

@@ -0,0 +1 @@
skills * people

1
tests_dir/17.fail Normal file
View File

@@ -0,0 +1 @@
people * skills

1
tests_dir/18.fail Normal file
View File

@@ -0,0 +1 @@
skills ÷ people

1
tests_dir/19.fail Normal file
View File

@@ -0,0 +1 @@
pepl

1
tests_dir/2.fail Normal file
View File

@@ -0,0 +1 @@
)

1
tests_dir/20.fail Normal file
View File

@@ -0,0 +1 @@
"people"

1
tests_dir/21.fail Normal file
View File

@@ -0,0 +1 @@
a+b

1
tests_dir/22.fail Normal file
View File

@@ -0,0 +1 @@
ratings ⋈ people people

1
tests_dir/23.fail Normal file
View File

@@ -0,0 +1 @@
people (ratings ⋈ people)

1
tests_dir/3.fail Normal file
View File

@@ -0,0 +1 @@
(people))

1
tests_dir/4.fail Normal file
View File

@@ -0,0 +1 @@
((people)

1
tests_dir/5.fail Normal file
View File

@@ -0,0 +1 @@
people*people

1
tests_dir/6.fail Normal file
View File

@@ -0,0 +1 @@
people skills

1
tests_dir/7.fail Normal file
View File

@@ -0,0 +1 @@
skills people

1
tests_dir/8.fail Normal file
View File

@@ -0,0 +1 @@
people ∩ skills

1
tests_dir/9.fail Normal file
View File

@@ -0,0 +1 @@
skills ∩ people

1
tests_dir/a_join_a.query Normal file
View File

@@ -0,0 +1 @@
people⋈people

View File

@@ -0,0 +1,9 @@
id,name,chief,age
0,jack,0,22
1,carl,0,20
2,john,1,30
3,dean,1,33
4,eve,0,25
5,duncan,4,30
6,paul,4,30
7,alia,1,28

View File

@@ -0,0 +1 @@
people⧓people

View File

@@ -0,0 +1,9 @@
id,name,chief,age
0,jack,0,22
1,carl,0,20
2,john,1,30
3,dean,1,33
4,eve,0,25
5,duncan,4,30
6,paul,4,30
7,alia,1,28

View File

@@ -0,0 +1 @@
people⧑people

View File

@@ -0,0 +1,9 @@
id,name,chief,age
0,jack,0,22
1,carl,0,20
2,john,1,30
3,dean,1,33
4,eve,0,25
5,duncan,4,30
6,paul,4,30
7,alia,1,28

View File

@@ -0,0 +1 @@
people⧒people

View File

@@ -0,0 +1,9 @@
id,name,chief,age
0,jack,0,22
1,carl,0,20
2,john,1,30
3,dean,1,33
4,eve,0,25
5,duncan,4,30
6,paul,4,30
7,alia,1,28

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,6 @@
id,name,chief,age,skill
2,john,1,30,C
7,alia,1,28,C
5,duncan,4,30,C
0,jack,0,22,C
4,eve,0,25,C

View File

@@ -0,0 +1 @@
π name (people)(people⋈skills)

View File

@@ -0,0 +1,2 @@
(people⋈skills) π name (people)

1
tests_dir/dates.query Normal file
View File

@@ -0,0 +1 @@
dates

6
tests_dir/dates.result Normal file
View File

@@ -0,0 +1,6 @@
"date"
"2008-12-12"
"2007-08-12"
"1985-05-09"
"1988-4-21"
"1992-7-27"

View File

@@ -0,0 +1 @@
σ date.year>2000 and date.day+10<30 (dates)

View File

@@ -0,0 +1,3 @@
date
2008-12-12
2007-08-12

View File

@@ -0,0 +1 @@
σ (len(name)==4)(people ⋈ skills)

View File

@@ -0,0 +1,12 @@
id,name,chief,age,skill
2,john,1,30,C
7,alia,1,28,C
1,carl,0,20,C++
2,john,1,30,PHP
7,alia,1,28,Python
3,dean,1,33,C++
7,alia,1,28,PHP
0,jack,0,22,Python
1,carl,0,20,Python
0,jack,0,22,C
1,carl,0,20,System Admin

View File

@@ -0,0 +1 @@
people ⧓skills

View File

@@ -0,0 +1,19 @@
id,skill,name,chief,age
4,C++,eve,0,25
4,C,eve,0,25
7,C,alia,1,28
9,Java,---,---,---
0,Python,jack,0,22
5,C,duncan,4,30
4,Perl,eve,0,25
2,C,john,1,30
1,Python,carl,0,20
5,Perl,duncan,4,30
6,---,paul,4,30
2,PHP,john,1,30
0,C,jack,0,22
7,Python,alia,1,28
1,System Admin,carl,0,20
7,PHP,alia,1,28
1,C++,carl,0,20
3,C++,dean,1,33

View File

@@ -0,0 +1 @@
σ name=='eve' (people) ∩ people

View File

@@ -0,0 +1,2 @@
id,name,chief,age
4,eve,0,25

View File

@@ -0,0 +1 @@
people ∩ σ name=='eve' (people)

View File

@@ -0,0 +1,2 @@
id,name,chief,age
4,eve,0,25

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
tests_dir/join.query Normal file
View File

@@ -0,0 +1 @@
people ⋈ skills

17
tests_dir/join.result Normal file
View File

@@ -0,0 +1,17 @@
id,name,chief,age,skill
2,john,1,30,C
7,alia,1,28,C
4,eve,0,25,C++
4,eve,0,25,C
5,duncan,4,30,Perl
1,carl,0,20,C++
7,alia,1,28,PHP
7,alia,1,28,Python
3,dean,1,33,C++
1,carl,0,20,Python
2,john,1,30,PHP
0,jack,0,22,Python
0,jack,0,22,C
1,carl,0,20,System Admin
4,eve,0,25,Perl
5,duncan,4,30,C

View File

@@ -0,0 +1 @@
people ⧑skills

View File

@@ -0,0 +1,18 @@
id,name,chief,age,skill
2,john,1,30,C
7,alia,1,28,C
4,eve,0,25,C++
6,paul,4,30,---
5,duncan,4,30,Perl
1,carl,0,20,C++
7,alia,1,28,PHP
4,eve,0,25,C
7,alia,1,28,Python
3,dean,1,33,C++
1,carl,0,20,Python
2,john,1,30,PHP
0,jack,0,22,Python
0,jack,0,22,C
1,carl,0,20,System Admin
4,eve,0,25,Perl
5,duncan,4,30,C

View File

@@ -0,0 +1 @@
(σ age<25(people) σ age>30(people)) ⋈ ratings-πid,name,chief,age,rating(σ rating<r((ρid➡i,rating➡r(π id,rating((σ age<25(people) σ age>30(people)) ⋈ ratings))) * (σ age<25(people) σ age>30(people)) ⋈ ratings))

View File

@@ -0,0 +1,2 @@
id,name,chief,age,rating
1,carl,0,20,6

1
tests_dir/maxdate.query Normal file
View File

@@ -0,0 +1 @@
dates-πdate(σ d>date (ρdate➡d(dates)*dates))

2
tests_dir/maxdate.result Normal file
View File

@@ -0,0 +1,2 @@
date
2008-12-12

1
tests_dir/name_age.query Normal file
View File

@@ -0,0 +1 @@
ρn➡name,a➡age(πn,a(ρid➡i,name➡n,chief➡c,age➡a(people)))

View File

@@ -0,0 +1,9 @@
name,age
eve,25
dean,33
carl,20
paul,30
john,30
jack,22
duncan,30
alia,28

View File

@@ -0,0 +1 @@
ρn➡chief_name,a➡chief_age(πname,age,n,a(σ i==chief and age>a (π i,c,n,a(ρage➡a,id➡i,chief➡c,name➡n(people))*people)))

View File

@@ -0,0 +1,7 @@
name,age,chief_name,chief_age
dean,33,carl,20
alia,28,carl,20
paul,30,eve,25
eve,25,jack,22
john,30,carl,20
duncan,30,eve,25

1
tests_dir/par1.query Normal file
View File

@@ -0,0 +1 @@
σ name=='(' (people)

1
tests_dir/par1.result Normal file
View File

@@ -0,0 +1 @@
id,name,chief,age

1
tests_dir/par2.query Normal file
View File

@@ -0,0 +1 @@
σ (name=='(') (people)

1
tests_dir/par2.result Normal file
View File

@@ -0,0 +1 @@
id,name,chief,age

1
tests_dir/par3.query Normal file
View File

@@ -0,0 +1 @@
σ (name==')') (people)

1
tests_dir/par3.result Normal file
View File

@@ -0,0 +1 @@
id,name,chief,age

1
tests_dir/par4.query Normal file
View File

@@ -0,0 +1 @@
σ name==')' (people)

1
tests_dir/par4.result Normal file
View File

@@ -0,0 +1 @@
id,name,chief,age

1
tests_dir/people.query Normal file
View File

@@ -0,0 +1 @@
people

9
tests_dir/people.result Normal file
View File

@@ -0,0 +1,9 @@
id,name,chief,age
0,jack,0,22
1,carl,0,20
2,john,1,30
3,dean,1,33
4,eve,0,25
5,duncan,4,30
6,paul,4,30
7,alia,1,28

View File

@@ -0,0 +1 @@
people⧓person_room

View File

@@ -0,0 +1,9 @@
id,name,chief,age,room
0,jack,0,22,1
1,carl,0,20,4
2,john,1,30,2
3,dean,1,33,2
4,eve,0,25,5
5,duncan,4,30,1
6,paul,4,30,5
7,alia,1,28,1

View File

@@ -0,0 +1 @@
people⋈person_room

View File

@@ -0,0 +1,9 @@
id,name,chief,age,room
0,jack,0,22,1
1,carl,0,20,4
2,john,1,30,2
3,dean,1,33,2
4,eve,0,25,5
5,duncan,4,30,1
6,paul,4,30,5
7,alia,1,28,1

View File

@@ -0,0 +1 @@
people⧓person_room ⧓ rooms

View File

@@ -0,0 +1,13 @@
id,name,chief,age,room,phone
0,jack,0,22,1,1516
1,carl,0,20,4,1041
2,john,1,30,2,1617
3,dean,1,33,2,1617
4,eve,0,25,5,9212
5,duncan,4,30,1,1516
6,paul,4,30,5,9212
7,alia,1,28,1,1516
---,---,---,---,"0","1515"
---,---,---,---,"3","1601"
---,---,---,---,"6","1424"
---,---,---,---,"7","1294"

View File

@@ -0,0 +1 @@
σ skill=='C' and age<25 and skill!=name(people ⋈ skills)

View File

@@ -0,0 +1,2 @@
id,name,chief,age,skill
0,jack,0,22,C

View File

@@ -0,0 +1 @@
πname,phone(((πname,id(people)- π name,id(πid(σ i!=id and room==r(ρ id➡i,room➡r(person_room)*person_room)) ⋈ people)) ⋈ person_room) ⋈ rooms)

View File

@@ -0,0 +1,2 @@
phone,name
1041,carl

1
tests_dir/php.query Normal file
View File

@@ -0,0 +1 @@
σ age<30 and skill=='PHP' (people ⋈ skills)

2
tests_dir/php.result Normal file
View File

@@ -0,0 +1,2 @@
id,name,chief,age,skill
7,alia,1,28,PHP

1
tests_dir/pswap.python Normal file
View File

@@ -0,0 +1 @@
people.projection("name","id","age","chief")==people

1
tests_dir/pswap.result Normal file
View File

@@ -0,0 +1 @@
True

View File

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

View File

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

1
tests_dir/quot1.query Normal file
View File

@@ -0,0 +1 @@
σ id=='\'' (people)

1
tests_dir/quot1.result Normal file
View File

@@ -0,0 +1 @@
id,name,chief,age

View File

@@ -0,0 +1 @@
σ (id==2) (σ age>5 (people people))

View File

@@ -0,0 +1,2 @@
id,name,chief,age
2,john,1,30

1
tests_dir/rel_eq.python Normal file
View File

@@ -0,0 +1 @@
people=='ciao'

1
tests_dir/rel_eq.result Normal file
View File

@@ -0,0 +1 @@
False

View File

@@ -0,0 +1,4 @@
p1=people.rename({"id":"ido"})
people.insert((123,"lala",0,31))
assert people!=p1
people.delete("id==123")

View File

@@ -0,0 +1,4 @@
p1=people.rename({"id":"ido"})
p1.insert((123,"lala",0,31))
assert people!=p1
people.delete("id==123")

View File

@@ -0,0 +1 @@
people ⧒ skills

View File

@@ -0,0 +1,18 @@
id,skill,name,chief,age
4,C++,eve,0,25
2,C,john,1,30
1,Python,carl,0,20
4,C,eve,0,25
1,C++,carl,0,20
7,C,alia,1,28
9,Java,---,---,---
2,PHP,john,1,30
0,Python,jack,0,22
4,Perl,eve,0,25
5,C,duncan,4,30
7,Python,alia,1,28
1,System Admin,carl,0,20
5,Perl,duncan,4,30
7,PHP,alia,1,28
0,C,jack,0,22
3,C++,dean,1,33

Some files were not shown because too many files have changed in this diff Show More