MCPcopy Create free account
hub / github.com/CoderLine/alphaTab / trimTest

Function trimTest

packages/alphatab/test/model/ModelUtils.test.ts:6–9  ·  view source on GitHub ↗
(tex: string, expectedBars: number)

Source from the content-addressed store, hash-verified

4import { NoteAccidentalMode } from '@coderline/alphatab/model/NoteAccidentalMode';
5describe('ModelUtilsTests', () => {
6 function trimTest(tex: string, expectedBars: number) {
7 const score = ScoreLoader.loadAlphaTex(tex);
8 expect(score.masterBars.length).toBe(expectedBars);
9 }
10
11 it('trimEmptyBarsAtEndFullyEmpty', () => {
12 trimTest('. | | | | | ', 1);

Callers 1

ModelUtils.test.tsFile · 0.85

Calls 2

loadAlphaTexMethod · 0.80
toBeMethod · 0.45

Tested by

no test coverage detected