Skip to content

Commit

Permalink
Remove the construct EDSL.printf
Browse files Browse the repository at this point in the history
  • Loading branch information
smondet committed Dec 16, 2016
1 parent d4961b1 commit 0e92a95
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/lib/EDSL.mli
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ val if_seq:

val seq : unit t list -> unit t
val not : bool t -> bool t
val printf : ('a, unit, string, unit t) format4 -> 'a

val file_exists : string t -> bool t

Expand Down
3 changes: 0 additions & 3 deletions src/lib/language.ml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ module Construct = struct

let not t = Not t

let printf fmt =
ksprintf (fun s -> exec ["printf"; "%s"; s]) fmt

let fail = Fail

let make_switch: type a. (bool t * unit t) list -> default: unit t -> unit t =
Expand Down
4 changes: 2 additions & 2 deletions src/test/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ let exits ?name ?args n c = [

let tests =
let exit n = Construct.exec ["exit"; Int.to_string n] in
let return n =
Construct.exec ["sh"; "-c"; sprintf "exit %d" n] in
let return n = Construct.exec ["sh"; "-c"; sprintf "exit %d" n] in
let printf fmt = ksprintf (fun s -> Construct.exec ["printf"; "%s"; s]) fmt in
List.concat [
exits 0 Construct.(
succeeds (exec ["ls"])
Expand Down

0 comments on commit 0e92a95

Please sign in to comment.