import 'package:test/test.dart';
import 'package:wolf_3d_dart/wolf_3d_input.dart';

void main() {
  group('CliInput shortcuts', () {
    test('matches default FPS toggle shortcut with backtick', () {
      final input = CliInput();

      expect(input.matchesFpsToggleShortcut(const [96]), isTrue);
      expect(input.matchesFpsToggleShortcut(const [126]), isFalse);
      expect(input.matchesFpsToggleShortcut(const [114]), isFalse);
    });

    test('matches renderer shortcut case-insensitively', () {
      final input = CliInput();

      expect(input.matchesRendererToggleShortcut(const [114]), isTrue);
      expect(input.matchesRendererToggleShortcut(const [82]), isTrue);
    });
  });
}
