Skip to content

Commit

Permalink
Add barf from unbalance test to try expose #1585
Browse files Browse the repository at this point in the history
(Didn't expose it)
  • Loading branch information
PEZ committed Mar 8, 2022
1 parent 3104924 commit d754f13
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/extension-test/unit/cursor-doc/paredit-test.ts
Expand Up @@ -1177,6 +1177,14 @@ describe('paredit', () => {
paredit.forwardBarfSexp(a);
expect(textAndSelection(a)).toEqual(textAndSelection(b));
});
it('barfs form from balanced list, when inside unclosed list', () => {
// Trying to expose:
// https://github.com/BetterThanTomorrow/calva/issues/1585
const a = docFromTextNotation('(let [a| a)');
const b = docFromTextNotation('(let [a|) a');
paredit.forwardBarfSexp(a);
expect(textAndSelection(a)).toEqual(textAndSelection(b));
});
});

describe('Barfing backwards', () => {
Expand Down

0 comments on commit d754f13

Please sign in to comment.