define([
	"src/core",
	"src/bundle/parent_lookup",
	"json!cldr-data/supplemental/parentLocales.json"
], function( Cldr, parentLookup, parentLocalesJson ) {

	describe( "Bundle Parent Lookup", function() {

		before(function() {
			Cldr.load( parentLocalesJson );
		});

		it( "should truncate locale", function() {
			expect( parentLookup( Cldr, [ "pt", "BR" ].join( Cldr.localeSep ) ) ).to.equal( "pt" );
		});

		it( "should end with root", function() {
			expect( parentLookup( Cldr, "en" ) ).to.equal( "root" );
		});

		it( "should use supplemental resource", function() {
			expect( parentLookup( Cldr, [ "en", "IN" ].join( Cldr.localeSep ) ) ).to.equal( [ "en", "GB" ].join( Cldr.localeSep ) );
		});

	});

});

define([
	"src/core",
	"src/bundle/parent_lookup",
	"json!cldr-data/supplemental/parentLocales.json"
], function( Cldr, parentLookup, parentLocalesJson ) {

	describe( "Bundle Parent Lookup", function() {

		before(function() {
			Cldr.load( parentLocalesJson );
		});

		it( "should truncate locale", function() {
			expect( parentLookup( Cldr, [ "pt", "BR" ].join( Cldr.localeSep ) ) ).to.equal( "pt" );
		});

		it( "should end with root", function() {
			expect( parentLookup( Cldr, "en" ) ).to.equal( "root" );
		});

		it( "should use supplemental resource", function() {
			expect( parentLookup( Cldr, [ "en", "IN" ].join( Cldr.localeSep ) )).to.equal( [ "en", "001" ].join( Cldr.localeSep ) );
		});

	});

});

Update test according to data from CLDR 28
Update test according to data from CLDR 28
