Skip to content

Commit 1e06423

Browse files
author
Alexander Lucas
committed
Fixed formatting of t_string.ml tests for take_while, etc.
1 parent 8bb3801 commit 1e06423

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Diff for: tests/core/t_string.ml

+8-3
Original file line numberDiff line numberDiff line change
@@ -280,18 +280,23 @@ eq ~printer:CCFun.id "" (unlines []);;
280280
eq ~printer:CCFun.id "ab\nc\n" (unlines [ "ab"; "c" ]);;
281281
q Q.printable_string (fun s -> trim (unlines (lines s)) = trim s);;
282282
q Q.printable_string (fun s -> trim (unlines_gen (lines_gen s)) = trim s);;
283-
284283
eq ~printer:CCFun.id "" (take_while (Char.equal 'c') "heloo_cc");;
285284
eq ~printer:CCFun.id "" (take_while (Char.equal 'c') "");;
286285
eq ~printer:CCFun.id "c" (take_while (Char.equal 'c') "c");;
287286
eq ~printer:CCFun.id "ccc" (take_while (Char.equal 'c') "cccujsuy");;
288-
eq ~printer:CCFun.id "THIS" (take_while (fun c -> Char.code c < 91) "THISisNotWHAtIwANTED");;
287+
288+
eq ~printer:CCFun.id "THIS"
289+
(take_while (fun c -> Char.code c < 91) "THISisNotWHAtIwANTED")
290+
;;
289291

290292
eq ~printer:CCFun.id "cc" (rtake_while (Char.equal 'c') "heloo_cc");;
291293
eq ~printer:CCFun.id "" (rtake_while (Char.equal 'c') "");;
292294
eq ~printer:CCFun.id "c" (rtake_while (Char.equal 'c') "c");;
293295
eq ~printer:CCFun.id "" (rtake_while (Char.equal 'c') "cccujsuy");;
294-
eq ~printer:CCFun.id "ANTED" (rtake_while (fun c -> Char.code c < 91) "THISisNotWHAtIwANTED");;
296+
297+
eq ~printer:CCFun.id "ANTED"
298+
(rtake_while (fun c -> Char.code c < 91) "THISisNotWHAtIwANTED")
299+
;;
295300

296301
q
297302
Q.(small_list small_string)

0 commit comments

Comments
 (0)