Browse Source

add test for inexistant resources (see #4400)

Dan Korostelev 10 years ago
parent
commit
95f76c1864
1 changed files with 3 additions and 0 deletions
  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]);
 			eq( b.get(i), firsts[i]);
 		for( i in 0...lasts.length )
 		for( i in 0...lasts.length )
 			eq( b.get(b.length - lasts.length + i), lasts[i] );
 			eq( b.get(b.length - lasts.length + i), lasts[i] );
+
+		eq(haxe.Resource.getString("nope"), null);
+		eq(haxe.Resource.getBytes("nope"), null);
 	}
 	}
 
 
 	#if neko
 	#if neko