Files
secondo/Algebras/Network2/testscripte/Test3_UpdateCost_Small.SEC
2026-01-23 17:03:45 +08:00

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;