mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
Add some test groups
This commit is contained in:
parent
65b0894eef
commit
7f929229ed
@ -55,7 +55,7 @@ sampleGraphThing = do
|
||||
|
||||
assertSimpleAssignment :: HUnit.Assertion
|
||||
assertSimpleAssignment = do
|
||||
let path = "semantic-python/test/fixtures/1-04-toplevel-assignment.py"
|
||||
let path = "../semantic-python/test/fixtures/1-04-toplevel-assignment.py"
|
||||
file <- ByteString.readFile path
|
||||
tree <- TS.parseByteString @Py.Module @Loc TSP.tree_sitter_python file
|
||||
pyModule <- either die pure tree
|
||||
@ -64,4 +64,11 @@ assertSimpleAssignment = do
|
||||
HUnit.assertEqual "Should work for simple case" expecto result
|
||||
|
||||
main :: IO ()
|
||||
main = Tasty.defaultMain (HUnit.testCase "toplevel assignment" assertSimpleAssignment)
|
||||
main = Tasty.defaultMain $
|
||||
Tasty.testGroup "Tests" [
|
||||
Tasty.testGroup "declare" [
|
||||
HUnit.testCase "toplevel assignment" assertSimpleAssignment
|
||||
],
|
||||
Tasty.testGroup "reference" [
|
||||
]
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user