diff options
author | Matt Godbolt <matt@godbolt.org> | 2024-03-30 13:53:04 -0500 |
---|---|---|
committer | Matt Godbolt <matt@godbolt.org> | 2024-03-30 13:53:04 -0500 |
commit | 653a214f392f0da7ab527aa7693745075ae4ba1c (patch) | |
tree | ddb75f4f2ca1c5aa56e521166e8465d513dadb68 | |
parent | 02f6646a895c0aea0727f2a75a9a76db0a6f525a (diff) | |
download | compiler-explorer-gh-11145.tar.gz compiler-explorer-gh-11145.zip |
Fix a test that used relied on `toMatch` matching an arraygh-11145
-rw-r--r-- | test/llvm-ast-parser-tests.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/llvm-ast-parser-tests.ts b/test/llvm-ast-parser-tests.ts index e591e8cd4..88f116c97 100644 --- a/test/llvm-ast-parser-tests.ts +++ b/test/llvm-ast-parser-tests.ts @@ -65,8 +65,8 @@ describe('llvm-ast', () => { }); it('removes invalid slocs', () => { + expect(astDump.join('\n')).toMatch(/<invalid sloc>/); const processed = astParser.processAst(cloneDeep(compilerOutput)); - expect(astDump).toMatch(/<invalid sloc>/); const fullText = processed.map(l => l.text).join('\n'); expect(fullText).not.toMatch(/<invalid sloc>/); }); |