depot/third_party/nixpkgs/pkgs/by-name/el/elvish/tests/expect-version.elv

9 lines
213 B
Text
Raw Normal View History

fn expect {|key expected|
var actual = $buildinfo[$key]
if (not-eq $actual $expected) {
fail '$buildinfo['$key']: expected '(to-string $expected)', got '(to-string $actual)
}
}
expect version @version@