Skip to content

Instantly share code, notes, and snippets.

@tolmasky
Created February 3, 2010 02:07
Show Gist options
  • Select an option

  • Save tolmasky/293261 to your computer and use it in GitHub Desktop.

Select an option

Save tolmasky/293261 to your computer and use it in GitHub Desktop.
var FileList = require("jake").FileList;
@implementation CFPropertyListTest : OJTestCase
- (void)testFormatSniffing
{print("INSIDE");
var XMLPropertyLists = new FileList("PropertyLists/XML-*.plist");
print(module.path);// + " " + XMLPropertyLists.toArray());
XMLPropertyLists.forEach(function(/*String*/ aPath)
{print(aPath)
[self assert:CFPropertyList.sniffedPropertyListFormat(FILE.read(aPath)) equals:CFPropertyList.FormatXML_v1_0];
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment