import 'package:fancake/features/quest/place_picker_screen.dart' show placeAddress; import 'package:flutter_test/flutter_test.dart'; import 'package:geocoding/geocoding.dart'; /// 10/6 실기기 — 핀 주소가 「서울특별시 마포구 34」로 도로명이 빠졌다. void main() { test('Android — 전체 주소 줄에서 나라 이름만 뗀다', () { final m = Placemark( country: '대한민국', street: '대한민국 서울특별시 마포구 양화로 34', administrativeArea: '서울특별시', subLocality: '마포구', subThoroughfare: '34', ); expect(placeAddress(m), '서울특별시 마포구 양화로 34'); }); test('iOS — 「도로명 번지」 street 앞에 시 · 구를 붙인다', () { final m = Placemark( country: '대한민국', street: '양화로 34', administrativeArea: '서울특별시', locality: '마포구', thoroughfare: '양화로', subThoroughfare: '34', ); expect(placeAddress(m), '서울특별시 마포구 양화로 34'); }); test('street 가 없으면 도로 · 번지 칸으로', () { final m = Placemark(administrativeArea: '서울특별시', thoroughfare: '양화로', subThoroughfare: '34'); expect(placeAddress(m), '서울특별시 양화로 34'); }); }