Skip to content

Commit

Permalink
update of unit tests for "check over", "decide over" and "evaluate ov…
Browse files Browse the repository at this point in the history
…er" etl operators
  • Loading branch information
audrey-jardin committed Dec 4, 2023
1 parent 3efe188 commit f653313
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ model CheckOver_no_ext is {

// Example of function call
Boolean phi1 is if 2.0 < time and time < 3.5 then true else false;
Boolean b1 is if 2.5 < time and time < 5 then true else false;
Period P1 is [b1, not b1];
Boolean b1 is if 2.5 < time and time < 5 then undecided else false;
Period P1 is [new Event b1, new Event not b1];

Boolean b_check_over is 'evaluate' phi1 'over' P1;
Boolean b_check_over is 'evaluate' phi1 'over' P1; //Value is undefined, becomes undecided at 2.5s and then false at t=3.5s
};
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ model DecideOver_no_ext is {

// Example of function call
Boolean phi1 is if 2.0 < time and time < 3.5 then true else false;
Boolean b1 is if 2.5 < time and time < 5 then true else false;
Period P1 is [b1, not b1];
Boolean b1 is if 2.5 < time and time < 5 then undecided else false;
Period P1 is [ new Event b1, new Event not b1];

Boolean b_decide_over is 'decide' phi1 'over' P1;
Boolean b_decide_over is 'decide' phi1 'over' P1; //Value is undecided and becomes false at t=3.5s
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ model EvaluateOver_no_ext is {

// Example of function call
Boolean phi1 is if 2.0 < time and time < 3.5 then true else false;
Boolean b1 is if 2.5 < time and time < 5 then true else false;
Period P1 is [b1, not b1];
Boolean b1 is if 2.5 < time and time < 5 then undecided else false;
Period P1 is [ new Event b1, new Event not b1];

Boolean b_evaluate_over is 'evaluate' phi1 'over' P1;
Boolean b_evaluate_over is 'evaluate' phi1 'over' P1; //Value is undefined, becomes undecided at 2.5s and then false at t=3.5s
};

0 comments on commit f653313

Please sign in to comment.