File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -33,11 +33,13 @@ - (void)testDictionaryDescription {
3333 MPUserDefaults *userDefaults = [MPUserDefaults standardUserDefaultsWithStateMachine: [MParticle sharedInstance ].stateMachine backendController: [MParticle sharedInstance ].backendController identity: [MParticle sharedInstance ].identity];
3434 NSData *testDeviceToken = [@" <000000000000000000000000000000>" dataUsingEncoding: NSUTF8StringEncoding];
3535 userDefaults[kMPDeviceTokenKey ] = testDeviceToken;
36+
37+ NSString *testCountry = [[NSLocale currentLocale ] objectForKey: NSLocaleCountryCode ];
3638
3739 MPDevice *device = [[MPDevice alloc ] initWithStateMachine: [MParticle sharedInstance ].stateMachine userDefaults: [MPUserDefaults standardUserDefaultsWithStateMachine: [MParticle sharedInstance ].stateMachine backendController: [MParticle sharedInstance ].backendController identity: [MParticle sharedInstance ].identity] identity: [MParticle sharedInstance ].identity];
3840 NSDictionary *testDictionary = device.dictionaryRepresentation ;
3941 XCTAssertEqualObjects (testDictionary[@" dll" ], @" en" );
40- XCTAssertEqualObjects (testDictionary[@" dlc" ], @" US " );
42+ XCTAssertEqualObjects (testDictionary[@" dlc" ], testCountry );
4143 XCTAssertEqualObjects (testDictionary[@" dma" ], @" Apple" );
4244 XCTAssertEqualObjects (testDictionary[kMPDeviceTokenKey ], @" 3c3030303030303030303030303030303030303030303030303030303030303e" );
4345#endif
You can’t perform that action at this time.
0 commit comments