push
travis-ci
484 of 599 relevant lines covered (80.8%)
30011.82 hits per line
1 |
module AnyStyle |
1✔ |
2 |
class Feature |
1✔ |
3 |
class Punctuation < Feature |
1✔ |
4 |
def observe(token, *args) |
1✔ |
5 |
case token
|
1,375✔ |
6 |
when /^\p{^P}+$/ |
|
7 |
:none
|
1,070✔ |
8 |
when /.+:.+/ |
|
9 |
:colon
|
× |
10 |
when /.+\p{Pd}.+/ |
|
11 |
:hyphen
|
32✔ |
12 |
when /.+\..+/ |
|
13 |
:period
|
44✔ |
14 |
when /&/ |
|
15 |
:amp
|
2✔ |
16 |
else
|
|
17 |
:other
|
227✔ |
18 |
end
|
|
19 |
end
|
|
20 |
end
|
|
21 |
end
|
|
22 |
end
|