2023-06-21 09:29:36 +00:00
|
|
|
import 'package:lightmeter/data/models/supported_locale.dart';
|
|
|
|
import 'package:test/test.dart';
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
test('intlName', () {
|
|
|
|
expect(SupportedLocale.en.intlName, 'en');
|
|
|
|
expect(SupportedLocale.fr.intlName, 'fr');
|
|
|
|
expect(SupportedLocale.ru.intlName, 'ru');
|
2023-10-20 14:12:43 +00:00
|
|
|
expect(SupportedLocale.zh.intlName, 'zh');
|
2023-06-21 09:29:36 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
test('localizedName', () {
|
|
|
|
expect(SupportedLocale.en.localizedName, 'English');
|
|
|
|
expect(SupportedLocale.fr.localizedName, 'Français');
|
|
|
|
expect(SupportedLocale.ru.localizedName, 'Русский');
|
2023-10-20 14:12:43 +00:00
|
|
|
expect(SupportedLocale.zh.localizedName, '简体中文');
|
2023-06-21 09:29:36 +00:00
|
|
|
});
|
|
|
|
}
|