4 Copyright : (c) CNRS, 2017-Present
5 License : AGPL + CECILL v3
6 Maintainer : team@gargantext.org
7 Stability : experimental
12 module Core.Utils where
16 import Gargantext.Prelude
18 import Gargantext.Core.Utils
23 describe "check if groupWithCounts works" $ do
24 it "simple integer array" $ do
25 (groupWithCounts [1, 2, 3, 1, 2, 3]) `shouldBe` [(1, 2), (2, 2), (3, 2)]
28 (groupWithCounts "abccba") `shouldBe` [('a', 2), ('b', 2), ('c', 2)]