소스 검색

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