Skip to content
Newer
Older
100644 28 lines (20 sloc) 742 Bytes
272cd41 @aryx pfff: [git api] supports the 'R099 src target' diff status format
aryx authored
1 open Common
2
3 open OUnit
4
5 module Lib = Lib_vcs
6
7 (*****************************************************************************)
8 (* Helpers *)
9 (*****************************************************************************)
10
11 (*****************************************************************************)
12 (* Unit tests *)
13 (*****************************************************************************)
14
15 let unittest =
16 "version_control" >::: [
17 "parsing file status" >:: (fun () ->
18 assert_equal
19 (Lib.Added, "a/b/foo.php")
20 (Lib.parse_file_status "A\ta/b/foo.php");
21
22 assert_equal
23 (Lib.Renamed (99, "a/b/foo.php"), "a/c/bar.php")
24 (Lib.parse_file_status "R099\ta/b/foo.php\ta/c/bar.php");
25
26 );
27 ]
Something went wrong with that request. Please try again.