• This project
    • Loading...
  • Sign in

flutter_package / flutter_math_fork

Go to a project
Toggle navigation
  • Projects
  • Groups
  • Snippets
  • Help
Toggle navigation pinning
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • flutter_math_fork
  • test
  • encoder
  • tex
  • functions
  • multiscripts_test.dart
  • init · 40288e88
    40288e88 Browse Files
    顾海波 authored 2025-03-05 15:58:58 +0800
multiscripts_test.dart 420 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import 'package:flutter_test/flutter_test.dart';

import '../recode.dart';

void main() {
  group('MultiscriptsNode encoding', () {
    test('general encoding', () {
      const testStrings = [
        'a_b^c',
        'a_b',
        'a^c',
        '{ab}_{12}^{cd}',
        '1_{12}^{cd}',
      ];
      for (final testString in testStrings) {
        expect(recodeTex(testString), testString);
      }
    });
  });
}