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
|
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
|
|
|
|
)
|
|
|
|
(TestHashdict.fuzzer .roomId TestRoom.fuzzer)
|