nixpkgs/pkgs/by-name/el/elvish/tests/expect-version.elv
Anderson Torres c3f4c7f54c elvish: refactor
- move installCheck to passthru.tests
- migrate to by-name
2023-09-19 00:02:22 -03:00

8 lines
213 B
Text

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@