Considering recent cleanup of such constructs please return like 'return locale_name.matches != 0;' or something like that.+ if ( !locale_name.matches ) + return FALSE; + return TRUE;
Please iterate through test data so it could be easily extended in future.+static void test_IsValidLocaleName(void) +{ + static const WCHAR enW[] = {'e','n',0}; + static const WCHAR enusW[] = {'e','n','-','U','S',0}; + static const WCHAR zzW[] = {'z','z',0}; + static const WCHAR zzzzW[] = {'z','z','-','Z','Z',0}; + BOOL ret;