diff --git a/relational_gui/maingui.ui b/relational_gui/maingui.ui new file mode 100644 index 0000000..a1208d0 --- /dev/null +++ b/relational_gui/maingui.ui @@ -0,0 +1,224 @@ + + + MainWindow + + + + 0 + 0 + 800 + 600 + + + + MainWindow + + + + + + 340 + 10 + 274 + 317 + + + + GroupBox + + + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + + + 340 + 330 + 274 + 233 + + + + GroupBox + + + + + + + + + + + 30 + 30 + 125 + 500 + + + + + + + GroupBox + + + + + + About + + + + + + + Survey + + + + + + + + + + GroupBox + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + PushButton + + + + + + + + + + + + + 0 + 0 + 800 + 21 + + + + + + + + diff --git a/test/driver.py b/test/driver.py index 6cd71a4..0e997a3 100644 --- a/test/driver.py +++ b/test/driver.py @@ -205,7 +205,8 @@ def run_test(testname): if (o_result==result_rel) and (result==result_rel): print "\033[32;1mTest passed\033[0m" return True - except: + except Exception as inst: + print inst pass print "\033[31;1mERROR\033[0m" print "Query: %s -> %s" % (query,expr) diff --git a/test/max_rating_in_age_range.query b/test/max_rating_in_age_range.query new file mode 100644 index 0000000..9a53737 --- /dev/null +++ b/test/max_rating_in_age_range.query @@ -0,0 +1 @@ +(σ age<25(people) ᑌ σ age>30(people)) ᐅᐊ ratings-πid,name,chief,age,rating(σ rating30(people)) ᐅᐊ ratings))) * (σ age<25(people) ᑌ σ age>30(people)) ᐅᐊ ratings)) \ No newline at end of file diff --git a/test/max_rating_in_age_range.result b/test/max_rating_in_age_range.result new file mode 100644 index 0000000..5d1f9f3 --- /dev/null +++ b/test/max_rating_in_age_range.result @@ -0,0 +1,2 @@ +id,name,chief,age,rating +1,carl,0,20,6