import 'package:flutter_test/flutter_test.dart';
import 'package:smplayer/features/player/widgets/player_clock_text.dart';

void main() {
  test('formatClock 补零到两位并用 24 小时制', () {
    expect(formatClock(DateTime(2026, 7, 2, 9, 5)), '09:05');
    expect(formatClock(DateTime(2026, 7, 2, 22, 47)), '22:47');
    expect(formatClock(DateTime(2026, 7, 2, 0, 0)), '00:00');
    expect(formatClock(DateTime(2026, 7, 2, 23, 59)), '23:59');
  });
}
