mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-13 02:02:46 +00:00
36 lines
687 B
Haxe
36 lines
687 B
Haxe
|
package funkin.util;
|
||
|
|
||
|
import massive.munit.util.Timer;
|
||
|
import massive.munit.Assert;
|
||
|
import massive.munit.async.AsyncFactory;
|
||
|
import funkin.util.DateUtil;
|
||
|
|
||
|
@:access(funkin.util.DateUtil)
|
||
|
class DateUtilTest extends FunkinTest
|
||
|
{
|
||
|
public function new()
|
||
|
{
|
||
|
super();
|
||
|
}
|
||
|
|
||
|
@BeforeClass
|
||
|
public function beforeClass() {}
|
||
|
|
||
|
@AfterClass
|
||
|
public function afterClass() {}
|
||
|
|
||
|
@Before
|
||
|
public function setup() {}
|
||
|
|
||
|
@After
|
||
|
public function tearDown() {}
|
||
|
|
||
|
@Test
|
||
|
public function testGenerateTimestamp()
|
||
|
{
|
||
|
var date:Date = new Date(2020, 10 - 1, 31, 3, 0, 0);
|
||
|
var timestamp:String = DateUtil.generateTimestamp(date);
|
||
|
Assert.areEqual("2020-10-31-03-00-00", timestamp);
|
||
|
}
|
||
|
}
|