From 2aea021890c349c97b1a020372b7213c0d24b155 Mon Sep 17 00:00:00 2001 From: Patrick Thomson Date: Wed, 18 Sep 2019 13:05:10 -0400 Subject: [PATCH] Use some tree information in a unit test. --- semantic-python/test/fixtures/1-04-toplevel-assignment.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/semantic-python/test/fixtures/1-04-toplevel-assignment.py b/semantic-python/test/fixtures/1-04-toplevel-assignment.py index 8336bf954..bf7a51aa2 100644 --- a/semantic-python/test/fixtures/1-04-toplevel-assignment.py +++ b/semantic-python/test/fixtures/1-04-toplevel-assignment.py @@ -1,3 +1,5 @@ # CHECK-JQ: .scope | has("hello") and has("goodbye") +# CHECK-JQ: .tree.location.span | [.start.line, .start.column] == [0, 0] +# CHECK-JQ: .tree.location.span | [.end.line, .end.column] == [5, 0] hello = () goodbye = ()