Browse Source

Add Date.fromTime(xxx).getTime() == xxx test.

Dan Korostelev 9 years ago
parent
commit
c1cec7dc93
1 changed files with 3 additions and 0 deletions
  1. 3 0
      tests/unit/src/unitstd/Date.unit.hx

+ 3 - 0
tests/unit/src/unitstd/Date.unit.hx

@@ -20,3 +20,6 @@ date.getDate() == 10;
 date.getDay() == 3;
 //date.getTime() == 405781340000.;
 date.toString() == "1982-11-10 14:02:20";
+
+var date = Date.fromTime(405781340000);
+date.getTime() == 405781340000;