Skip to content

Commit

Permalink
[tests] Make graph tests actual golden tests (#415)
Browse files Browse the repository at this point in the history
Turn our existing graph tests into golden tests. Delete test infrastructure for building graphs by hand as expected values.
This is trading effort spent building graphs by hand for slightly more effort scrutinising verbose graphs.
  • Loading branch information
croyzor committed Jul 23, 2024
1 parent 3dda869 commit 34a8179
Show file tree
Hide file tree
Showing 32 changed files with 405 additions and 923 deletions.
4 changes: 1 addition & 3 deletions brat/brat.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,10 @@ test-suite tests
main-is: Main.hs
other-modules: Test.Abstractor,
Test.Checking,
Test.Circuit.Common,
Test.Circuit.Graph,
Test.Compile.Hugr,
Test.Constructors,
Test.Elaboration,
Test.Failure,
Test.Graph,
Test.Libs,
Test.Parsing,
Test.Naming,
Expand Down
5 changes: 2 additions & 3 deletions brat/test/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import Test.Tasty.Silver.Interactive (defaultMain)

import Test.Abstractor
import Test.Checking
import Test.Circuit.Graph
import Test.Graph
import Test.Compile.Hugr
import Test.Constructors
import Test.Elaboration
import Test.Failure
import Test.Libs
Expand All @@ -21,6 +20,7 @@ main = do
checkingTests <- getCheckingTests
parsingTests <- getParsingTests
compilationTests <- setupCompilationTests
graphTests <- getGraphTests
defaultMain $ testGroup "All" [graphTests
,failureTests
,checkingTests
Expand All @@ -29,7 +29,6 @@ main = do
,nameTests
,parsingTests
,searchTests
,constructorTests
,elaborationTests
,substitutionTests
,abstractorTests
Expand Down
355 changes: 0 additions & 355 deletions brat/test/Test/Circuit/Common.hs

This file was deleted.

Loading

0 comments on commit 34a8179

Please sign in to comment.