mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-29 19:15:55 -05:00
43 lines
832 B
Haxe
43 lines
832 B
Haxe
|
package funkin.util.assets;
|
||
|
|
||
|
import openfl.utils.Assets;
|
||
|
import massive.munit.util.Timer;
|
||
|
import massive.munit.Assert;
|
||
|
import massive.munit.async.AsyncFactory;
|
||
|
import funkin.util.assets.DataAssets;
|
||
|
|
||
|
@:access(funkin.util.assets.DataAssets)
|
||
|
class DataAssetsTest 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 testBuildDataPath()
|
||
|
{
|
||
|
Assert.areEqual('assets/data/test.json', DataAssets.buildDataPath('test.json'));
|
||
|
}
|
||
|
|
||
|
@Test
|
||
|
public function listDataFilesInPath()
|
||
|
{
|
||
|
var expected = ['blablabla', 'test1', 'test2'];
|
||
|
|
||
|
Assert.areEqual(expected, DataAssets.listDataFilesInPath('test/'));
|
||
|
}
|
||
|
}
|