Browse Source

add test for inexistant resources (see #4400)

Dan Korostelev 10 năm trước cách đây
mục cha
commit
95f76c1864
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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