Skip to content

Commit

Permalink
nixd/test: rename A -> AST
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed Aug 24, 2023
1 parent 3ccfe9f commit 0c61ae5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nixd/test/ast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ TEST(AST, LocationContext) {
)";
InitNix INix;
auto State = INix.getDummyState();
auto A = ParseAST::create(
auto AST = ParseAST::create(
parse(NixSrc, nix::CanonPath("foo"), nix::CanonPath("/"), *State));
ASSERT_EQ(A->getContext({2, 2}), ParseAST::LocationContext::AttrName);
ASSERT_EQ(A->getContext({4, 8}), ParseAST::LocationContext::Value);
ASSERT_EQ(A->getContext({8, 8}), ParseAST::LocationContext::Unknown);
ASSERT_EQ(A->getContext({17, 10}), ParseAST::LocationContext::Value);
ASSERT_EQ(AST->getContext({2, 2}), ParseAST::LocationContext::AttrName);
ASSERT_EQ(AST->getContext({4, 8}), ParseAST::LocationContext::Value);
ASSERT_EQ(AST->getContext({8, 8}), ParseAST::LocationContext::Unknown);
ASSERT_EQ(AST->getContext({17, 10}), ParseAST::LocationContext::Value);
}

TEST(AST, lookupContainMin) {
Expand Down

0 comments on commit 0c61ae5

Please sign in to comment.