22 lines
827 B
Plaintext
22 lines
827 B
Plaintext
#################################################################
|
|
# Testszenario for testing the new operator update_sectioncost
|
|
#################################################################
|
|
|
|
open database networktest;
|
|
|
|
delete costs;
|
|
restore costs from 'costs.data';
|
|
query costs feed project[Sid,Cost] consume;
|
|
|
|
##TEST 1#######################################################
|
|
query update_sectioncost(B_NETWORK,1,6.0);
|
|
##TEST 2########################################################
|
|
query update_sectioncost(B_NETWORK,27,6.0);
|
|
##TEST 3########################################################
|
|
query update_sectioncost(B_NETWORK,costs);
|
|
##TEST 4########################################################
|
|
query update_sectioncost(B_NETWORK,[const rel(tuple([sid: int, cost: real])) value ((1 5.0)(2 27.0))]);
|
|
|
|
close database;
|
|
|