캠페인 실시간 랭킹 후원자 이름 · 위치 핀 도로명 주소

This commit is contained in:
Sn-Kinos
2026-10-06 01:24:53 +09:00
parent 83d9c1e8d4
commit d441170dd7
6 changed files with 90 additions and 9 deletions
+34
View File
@@ -0,0 +1,34 @@
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');
});
}