Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denops_std/function/vim/mod.ts>assert_false

📚 Standard module for denops.vim
Go to Latest
function assert_false
import { assert_false } from "https://deno.land/x/denops_std@v5.1.0/function/vim/mod.ts";

When {actual} is not false an error message is added to v:errors, like with assert_equal(). Also see assert-return. A value is false when it is zero. When {actual} is not a number the assert fails. When {msg} is omitted an error in the form "Expected False but got {actual}" is produced.

Can also be used as a method:

GetResult()->assert_false()

Parameters

denops: Denops
actual: unknown
optional
msg: unknown

Returns

Promise<number>