mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-24 14:56:15 +02:00
Fix test
This commit is contained in:
parent
f780539406
commit
59a8e05754
1 changed files with 3 additions and 1 deletions
|
@ -156,7 +156,9 @@ namespace nix {
|
||||||
|
|
||||||
auto file = v.attrs->find(createSymbol("file"));
|
auto file = v.attrs->find(createSymbol("file"));
|
||||||
ASSERT_NE(file, nullptr);
|
ASSERT_NE(file, nullptr);
|
||||||
ASSERT_THAT(*file->value, IsStringEq("/foo.nix"));
|
ASSERT_THAT(*file->value, IsString());
|
||||||
|
auto s = baseNameOf(file->value->string.s);
|
||||||
|
ASSERT_EQ(s, "foo.nix");
|
||||||
|
|
||||||
auto line = v.attrs->find(createSymbol("line"));
|
auto line = v.attrs->find(createSymbol("line"));
|
||||||
ASSERT_NE(line, nullptr);
|
ASSERT_NE(line, nullptr);
|
||||||
|
|
Loading…
Reference in a new issue