Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yinwang0 committed Feb 26, 2014
1 parent e3ed91f commit 6a6acb1
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 0 deletions.
Empty file.
Empty file.
4 changes: 4 additions & 0 deletions tests/relative-import.test/baz/rel.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from ..foo.bar import f

y = f(42)
print y
Empty file.
2 changes: 2 additions & 0 deletions tests/relative-import.test/foo/bar.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def f(x):
return 0
50 changes: 50 additions & 0 deletions tests/relative-import.test/refs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[
{
"ref": {
"name": "f",
"file": "baz/rel.py",
"start": -1,
"end": -1
},
"dests": [
{
"name": "f",
"file": "foo/bar.py",
"start": 4,
"end": 5
}
]
},
{
"ref": {
"name": "f",
"file": "baz/rel.py",
"start": 29,
"end": 30
},
"dests": [
{
"name": "f",
"file": "foo/bar.py",
"start": 4,
"end": 5
}
]
},
{
"ref": {
"name": "y",
"file": "baz/rel.py",
"start": 41,
"end": 42
},
"dests": [
{
"name": "y",
"file": "baz/rel.py",
"start": 25,
"end": 26
}
]
}
]

0 comments on commit 6a6acb1

Please sign in to comment.