فهرست منبع

add test for inexistant resources (see #4400)

Dan Korostelev 10 سال پیش
والد
کامیت
95f76c1864
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      tests/unit/src/unit/TestResource.hx

+ 3 - 0
tests/unit/src/unit/TestResource.hx

@@ -31,6 +31,9 @@ class TestResource extends Test {
 			eq( b.get(i), firsts[i]);
 		for( i in 0...lasts.length )
 			eq( b.get(b.length - lasts.length + i), lasts[i] );
+
+		eq(haxe.Resource.getString("nope"), null);
+		eq(haxe.Resource.getBytes("nope"), null);
 	}
 
 	#if neko