packages feed

MultipletCombiner 0.0.1 → 0.0.2

raw patch · 2 files changed

+18/−3 lines, 2 filesdep +HUnitPVP ok

version bump matches the API change (PVP)

Dependencies added: HUnit

API changes (from Hackage documentation)

Files

MultipletCombiner.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           MultipletCombiner-version:        0.0.1+version:        0.0.2 synopsis:       A Haskell implementation for combining SU(n) multiplets. description:    See README at <https://github.com/mdrslmr/MultipletCombiner> category:       physics,library,science,math,groups@@ -31,7 +31,8 @@   hs-source-dirs:       src   build-depends:-      base ==4.15.*+      HUnit ==1.6.2.0+    , base >=4.9 && <4.16   default-language: Haskell2010  test-suite spec@@ -44,5 +45,6 @@       src       tests   build-depends:-      base ==4.15.*+      HUnit ==1.6.2.0+    , base >=4.9 && <4.16   default-language: Haskell2010
tests/MultipletCombinerTests.hs view
@@ -1,6 +1,17 @@+module Main (main) where+import System.Exit+ import Test.HUnit import Physics.MultipletCombiner +main :: IO ()+main = do+    counts <- runTestTT tests+    if (errors counts + failures counts == 0)+        then exitSuccess+        else exitFailure++ comb1 = TestCase (assertEqual "[1] >< [1], " [[2],[0]] ([1] >< [1])) comb2 = TestCase (assertEqual "[1,0] >< [0,1], " [[1,1],[0,0]] ([1,0] >< [0,1])) @@ -29,4 +40,6 @@                 TestLabel "yt3" yt3,                 TestLabel "yt4" yt4,                 TestLabel "yt5" yt5]++