Sha256: 3be11319c07adfdfad38ea91063bdb555c47f3268fe39942fc831a7f96b530d7

Contents?: true

Size: 352 Bytes

Versions: 55

Compression:

Stored size: 352 Bytes

Contents

open Core

open Model
open Yojson.Basic

let optional_int ~(none: int) = function
| `Int n when n = none -> "Nothing"
| `Int n -> "(Just " ^ Int.to_string n ^ ")"
| x -> json_to_string x

let edit_expected ~(stringify: json -> string) ~(slug: string) ~(value: json) = match slug with
| "hamming" -> optional_int ~none:(-1) value
| _ -> stringify value

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
trackler-2.1.0.42 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.41 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.40 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.39 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.38 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.37 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.36 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.34 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.33 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.32 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.31 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.30 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.29 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.28 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.27 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml