라이브 티커 · 갤럭시 검색 색인 · 주간 랭킹 스냅샷 · 연속 ZAP 상한 · 가입 행성 Zap · 성운 목표 · 랭킹 갱신 안내 · 행성 터치 반응
This commit is contained in:
@@ -7,6 +7,16 @@ import 'package:flutter/material.dart';
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
|
||||
void main() {
|
||||
test('진화 5% 전 아우라는 두 조건 중 낮은 쪽이 95% 이상일 때 (Figma 2024:20758)', () {
|
||||
bool imminent(num pop, num sfpi) => PlanetVisualState.fromDocument({
|
||||
'levelPop': pop, 'nextStagePop': 100, 'sfpi': sfpi, 'nextStageSfpi': 100,
|
||||
}).evolutionImminent;
|
||||
expect(imminent(96, 99), isTrue);
|
||||
expect(imminent(99, 94), isFalse);
|
||||
expect(imminent(100, 100), isFalse, reason: '도달은 진화 판정의 몫');
|
||||
expect(PlanetVisualState.fromDocument({'stage': 2}).evolutionImminent, isFalse);
|
||||
});
|
||||
|
||||
test('컬러는 마스터(config/planetColors)가 정한다 — 추가 색은 그리고 숨긴 색은 고르지 못한다 (10/3 #6)', () {
|
||||
final master = planetColorsFrom({'colors': [
|
||||
{'key': 'gold', 'hex': '#FFC500', 'visible': false},
|
||||
|
||||
Reference in New Issue
Block a user