aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Godbolt <matt@godbolt.org>2024-03-30 13:53:04 -0500
committerMatt Godbolt <matt@godbolt.org>2024-03-30 13:53:04 -0500
commit653a214f392f0da7ab527aa7693745075ae4ba1c (patch)
treeddb75f4f2ca1c5aa56e521166e8465d513dadb68
parent02f6646a895c0aea0727f2a75a9a76db0a6f525a (diff)
downloadcompiler-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.ts2
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>/);
});