Skip to content

Commit

Permalink
Fix subtraction test of DateTime
Browse files Browse the repository at this point in the history
Creating a Duration does not work anymore that way, due to "e547700 - Make Duration constructors unambiguous"
  • Loading branch information
m-kessler committed Apr 15, 2020
1 parent 466f15d commit 9648a5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ModelicaTest/Utilities.mo
Original file line number Diff line number Diff line change
Expand Up @@ -676,8 +676,8 @@ extends Modelica.Icons.ExamplesPackage;
assert(dt3<=dt3, "dt3<=dt3 failed");

// - subtract
assert(dt2-dt1==Duration(milliseconds=1), "dt2-dt1 failed");
assert(dt1-dt2==Duration(milliseconds=-1), "dt1-dt2 failed");
assert(dt2-dt1==Duration(days=0, hours=0, minutes=0, seconds=0, milliseconds=1), "dt2-dt1 failed");
assert(dt1-dt2==Duration(days=0, hours=0, minutes=0, seconds=0, milliseconds=-1), "dt1-dt2 failed");


// return result
Expand Down

0 comments on commit 9648a5b

Please sign in to comment.