Skip to content

Commit 9f8da4f

Browse files
committed
Oops
1 parent 1dbdd6d commit 9f8da4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vimscript/expression/evaluate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ export class EvaluationContext {
727727
}
728728
case 'assert_notequal': {
729729
const [expected, actual, msg] = getArgs(2, 3);
730-
if (this.evaluateComparison('=~', true, expected!, actual!)) {
730+
if (this.evaluateComparison('!=', true, expected!, actual!)) {
731731
return assertPassed();
732732
}
733733
return assertFailed(
@@ -736,7 +736,7 @@ export class EvaluationContext {
736736
}
737737
case 'assert_notmatch': {
738738
const [pattern, actual, msg] = getArgs(2, 3);
739-
if (this.evaluateComparison('=~', true, actual!, pattern!)) {
739+
if (!this.evaluateComparison('=~', true, actual!, pattern!)) {
740740
return assertPassed();
741741
}
742742
return assertFailed(

0 commit comments

Comments
 (0)