@davoodmehraban89 / LifeMate / commits / caf5785
Fork 0

LifeMate — Personal, Family & Learning Companion

test: cover Iranian grade mapping

davoodmehraban89 committed Oct 5, 2026 at 19:45 UTC caf578550322ce9bb45d2390123a881331b560c6
1 file changed +15
apps/lifemate/test/iran_hub_test.dart new
+15
@@ -0,0 +1,15 @@
1 +import 'package:flutter_test/flutter_test.dart';
2 +import 'package:lifemate/iran_hub.dart';
3 +
4 +void main() {
5 + test('grade 7 maps to first year of secondary first cycle', () {
6 + expect(iranStageLabel(7), 'دوره اول متوسطه');
7 + expect(iranLocalYear(7), 1);
8 + });
9 +
10 + test('Iranian stages cover grades 1 through 12', () {
11 + expect(iranStageLabel(1), 'دوره اول ابتدایی');
12 + expect(iranStageLabel(4), 'دوره دوم ابتدایی');
13 + expect(iranStageLabel(10), 'دوره دوم متوسطه');
14 + });
15 +}