mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-05 06:14:36 +00:00
42d8d55067
* Initial test suite * Fix some build warnings * Implemented working unit tests with coverage * Reduced some warnings * Fix a mac-specific issue * Add 2 additional unit test classes. * Multiple new unit tests * Some fixins * Remove auto-generated file * WIP on hiding ignored tests * Added list of debug hotkeys * Remove old website * Remove empty file * Add more unit tests * Fix bug where arrows would nudge BF * Fix bug where ctrl/alt would flash capsules * Fixed bug where bf-old easter egg broke * Remove duplicate lines * More test-related stuff * Some code cleanup * Add mocking and a test assets folder * More TESTS! * Update Hmm... * Update artist on Monster * More minor fixes to individual functions * 1.38% unit test coverage! * Even more tests? :O * More unit test work * Rework migration for BaseRegistry * gameover fix * Fix an issue with Lime * Fix issues with version parsing on data files * 100 total unit tests! * Added even MORE unit tests! * Additional test tweaks :3 * Fixed tests on windows by updating libraries. * Set versions for flixel-ui and hamcrest --------- Co-authored-by: Cameron Taylor <cameron.taylor.ninja@gmail.com>
108 lines
2.2 KiB
Haxe
108 lines
2.2 KiB
Haxe
package flixel;
|
|
|
|
import massive.munit.Assert;
|
|
|
|
@:access(flixel.FlxG)
|
|
class FlxGTest extends FunkinTest
|
|
{
|
|
@Test function testVERSIONNull():Void
|
|
Assert.isNotNull(FlxG.VERSION);
|
|
|
|
@Test function testGameNull():Void
|
|
Assert.isNotNull(FlxG.game);
|
|
|
|
@Test function testStageNull():Void
|
|
Assert.isNotNull(FlxG.stage);
|
|
|
|
@Test function testStateNull():Void
|
|
Assert.isNotNull(FlxG.state);
|
|
|
|
@Test function testWorldBoundsNull():Void
|
|
Assert.isNotNull(FlxG.worldBounds);
|
|
|
|
@Test function testSaveNull():Void
|
|
Assert.isNotNull(FlxG.save);
|
|
|
|
#if FLX_MOUSE
|
|
@Test function testMouseNull():Void
|
|
Assert.isNotNull(FlxG.mouse);
|
|
#end
|
|
|
|
#if FLX_TOUCH
|
|
@Test function testTouchNull():Void
|
|
Assert.isNotNull(FlxG.touches);
|
|
#end
|
|
|
|
#if FLX_POINTER_INPUT
|
|
@Test function testSwipesNull():Void
|
|
Assert.isNotNull(FlxG.swipes);
|
|
#end
|
|
|
|
#if FLX_KEYBOARD
|
|
@Test function testKeysNull():Void
|
|
Assert.isNotNull(FlxG.keys);
|
|
#end
|
|
|
|
#if FLX_GAMEPAD
|
|
@Test function testGamepadsNull():Void
|
|
Assert.isNotNull(FlxG.gamepads);
|
|
#end
|
|
|
|
#if android
|
|
@Test function testAndroidNull():Void
|
|
Assert.isNotNull(FlxG.android);
|
|
#end
|
|
|
|
#if js
|
|
@Test function testHtml5Null():Void
|
|
Assert.isNotNull(FlxG.html5);
|
|
#end
|
|
|
|
@Test function testInputsNull():Void
|
|
Assert.isNotNull(FlxG.inputs);
|
|
|
|
@Test function testConsoleNull():Void
|
|
Assert.isNotNull(FlxG.console);
|
|
|
|
@Test function testLogNull():Void
|
|
Assert.isNotNull(FlxG.log);
|
|
|
|
@Test function testWatchNull():Void
|
|
Assert.isNotNull(FlxG.watch);
|
|
|
|
@Test function testDebuggerNull():Void
|
|
Assert.isNotNull(FlxG.debugger);
|
|
|
|
@Test function testVcrNull():Void
|
|
Assert.isNotNull(FlxG.vcr);
|
|
|
|
@Test function testBitmapNull():Void
|
|
Assert.isNotNull(FlxG.bitmap);
|
|
|
|
@Test function testCamerasNull():Void
|
|
Assert.isNotNull(FlxG.cameras);
|
|
|
|
@Test function testPluginsNull():Void
|
|
Assert.isNotNull(FlxG.plugins);
|
|
|
|
#if FLX_SOUND_SYSTEM
|
|
@Test function testSoundNull():Void
|
|
Assert.isNotNull(FlxG.sound);
|
|
#end
|
|
|
|
@Test function testScaleModeNull():Void
|
|
Assert.isNotNull(FlxG.scaleMode);
|
|
|
|
@Test
|
|
function testDefaultWidth():Void
|
|
{
|
|
Assert.areEqual(640, FlxG.width);
|
|
}
|
|
|
|
@Test
|
|
function testDefaultHeight():Void
|
|
{
|
|
Assert.areEqual(480, FlxG.height);
|
|
}
|
|
}
|