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.0.6 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.0.5 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.0.4 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.0.3 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.0.2 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.0.1 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.2.0.0 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.55 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.54 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.53 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.52 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.51 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.50 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.49 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.48 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.47 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.46 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.45 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.44 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml
trackler-2.1.0.43 tracks/ocaml/tools/test-generator/src/purescript_special_cases.ml