2023-12-24 10:30:50 +00:00
|
|
|
module Test.Values.Vault exposing (..)
|
|
|
|
|
2024-05-08 05:57:08 +00:00
|
|
|
import FastDict as Dict exposing (Dict)
|
2023-12-24 10:30:50 +00:00
|
|
|
import Fuzz exposing (Fuzzer)
|
2024-05-08 05:57:08 +00:00
|
|
|
import Internal.Tools.Json as Json
|
2023-12-24 10:30:50 +00:00
|
|
|
import Internal.Values.Vault exposing (Vault)
|
|
|
|
import Test exposing (..)
|
2024-05-08 05:57:08 +00:00
|
|
|
import Test.Tools.Hashdict as TestHashdict
|
|
|
|
import Test.Values.Room as TestRoom
|
2024-05-10 13:41:27 +00:00
|
|
|
import Internal.Tools.Hashdict as Hashdict
|
2023-12-24 10:30:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
vault : Fuzzer Vault
|
|
|
|
vault =
|
2024-05-08 05:57:08 +00:00
|
|
|
Fuzz.map2 Vault
|
|
|
|
(Fuzz.string
|
|
|
|
|> Fuzz.map (\k -> ( k, Json.encode Json.int 0 ))
|
|
|
|
|> Fuzz.list
|
|
|
|
|> Fuzz.map Dict.fromList
|
|
|
|
)
|
2024-05-10 13:41:27 +00:00
|
|
|
(Fuzz.constant <| Hashdict.empty .roomId)
|
|
|
|
-- (TestHashdict.fuzzer .roomId TestRoom.fuzzer)
|