Переглянути джерело

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