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_equalfile

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

When the files {fname-one} and {fname-two} do not contain exactly the same text an error message is added to v:errors. Also see assert-return. When {fname-one} or {fname-two} does not exist the error will mention that. Mainly useful with terminal-diff.

Can also be used as a method:

GetLog()->assert_equalfile('expected.log')

Parameters

denops: Denops
fname_one: unknown
fname_two: unknown
optional
msg: unknown

Returns

Promise<number>