Skip to content

Commit 718d1f1

Browse files
authored
Merge pull request #304 from pfitaxel/fix-ci
Fix CI build
2 parents df4a6db + b7c9998 commit 718d1f1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ lessons and tutorials.
77

88
A demo is available at: [http://learn-ocaml.hackojo.org/].
99

10-
![Build status logo](https://travis-ci.org/ocaml-sf/learn-ocaml.svg)
10+
[![Build Status](https://travis-ci.org/ocaml-sf/learn-ocaml.svg?branch=master)](https://travis-ci.org/ocaml-sf/learn-ocaml)
1111

1212
Howtos
1313
------

src/utils/learnocaml_partition_create.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ let partition_by_grade funname =
5050
let rec get_relative_section = function
5151
| [] -> []
5252
| (Message _)::xs -> get_relative_section xs
53-
| (Section (t,res))::xs ->
53+
| (Section (t,res))::xs | (SectionMin (t,res, _))::xs ->
5454
match t with
5555
| Text _::Code fn::_ ->
5656
if fn = funname
@@ -62,6 +62,7 @@ let partition_by_grade funname =
6262
let aux acc =
6363
function
6464
| Section (_,s) -> get_grade s
65+
| SectionMin (_, s, min) -> max (get_grade s) min
6566
| Message (_,s) ->
6667
match s with
6768
| Success i -> acc + i

0 commit comments

Comments
 (0)