We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dbdd6d commit 9f8da4fCopy full SHA for 9f8da4f
src/vimscript/expression/evaluate.ts
@@ -727,7 +727,7 @@ export class EvaluationContext {
727
}
728
case 'assert_notequal': {
729
const [expected, actual, msg] = getArgs(2, 3);
730
- if (this.evaluateComparison('=~', true, expected!, actual!)) {
+ if (this.evaluateComparison('!=', true, expected!, actual!)) {
731
return assertPassed();
732
733
return assertFailed(
@@ -736,7 +736,7 @@ export class EvaluationContext {
736
737
case 'assert_notmatch': {
738
const [pattern, actual, msg] = getArgs(2, 3);
739
- if (this.evaluateComparison('=~', true, actual!, pattern!)) {
+ if (!this.evaluateComparison('=~', true, actual!, pattern!)) {
740
741
742
0 commit comments