m3_lightmeter/test/data/models/supported_locale_test.dart

19 lines
609 B
Dart
Raw Normal View History

2023-06-21 06:58:55 +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-19 18:21:12 +00:00
expect(SupportedLocale.zh.intlName, 'zh');
2023-06-21 06:58:55 +00:00
});
test('localizedName', () {
expect(SupportedLocale.en.localizedName, 'English');
expect(SupportedLocale.fr.localizedName, 'Français');
expect(SupportedLocale.ru.localizedName, 'Русский');
2023-10-19 18:21:12 +00:00
expect(SupportedLocale.zh.localizedName, '简体中文');
2023-06-21 06:58:55 +00:00
});
}