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