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.2.1.19 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.18 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.17 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.16 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.15 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.14 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.13 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.12 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.11 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.10 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.9 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.8 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.7 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.6 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.5 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.4 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.3 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.2 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.1 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.1.0 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml