1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00

Add some test groups

This commit is contained in:
joshvera 2020-01-14 17:28:56 -05:00
parent 65b0894eef
commit 7f929229ed

View File

@ -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" [
]
]