diff --git a/README.md b/README.md index 2b9a8d370..0674643ca 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ [![Travis](https://travis-ci.org/JuliaDiff/ChainRulesCore.jl.svg?branch=master)](https://travis-ci.org/JuliaDiff/ChainRulesCore.jl) [![Coveralls](https://coveralls.io/repos/github/JuliaDiff/ChainRulesCore.jl/badge.svg?branch=master)](https://coveralls.io/github/JuliaDiff/ChainRulesCore.jl?branch=master) [![PkgEval](https://juliaci.github.io/NanosoldierReports/pkgeval_badges/C/ChainRulesCore.svg)](https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html) +[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle) **Docs:** [![](https://img.shields.io/badge/docs-master-blue.svg)](https://JuliaDiff.github.io/ChainRulesCore.jl/dev) @@ -15,5 +16,3 @@ The ChainRulesCore package provides a light-weight dependency for defining sensi This will allow your package to be used with [ChainRules.jl](https://github.com/JuliaDiff/ChainRules.jl), which aims to provide a variety of common utilities that can be used by downstream automatic differentiation (AD) tools to define and execute forward-, reverse-, and mixed-mode primitives. This package is a work in progress; the framework is essentially there, but there are a bunch of TODOs, virtually no tests, etc. PRs welcome! The API is mostly documented, which should help if you'd like to contribute. - -The ChainRulesCore source code follows the [YASGuide](https://github.com/jrevels/YASGuide). diff --git a/test/rules.jl b/test/rules.jl index f6b770b5a..bd502d9f5 100644 --- a/test/rules.jl +++ b/test/rules.jl @@ -53,6 +53,6 @@ _second(t) = Base.tuple_type_head(Base.tuple_type_tail(t)) sx = @SVector [1, 2] sy = @SVector [3, 4] - # This actually is testing that @scalar_rule and `One()` play nice together, w.r.t broadcasting + # This is testing that @scalar_rule and `One()` play nice together, w.r.t broadcasting @inferred frule(very_nice, 1, 2, Zero(), sx, sy) end diff --git a/test/runtests.jl b/test/runtests.jl index 8a3390c7f..2dd4fdb78 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,9 +1,7 @@ -# TODO: more tests! -using Test +using Base.Broadcast: broadcastable using ChainRulesCore using LinearAlgebra: Diagonal -using ChainRulesCore: extern, Composite, @scalar_rule, Zero, One, DoesNotExist, Thunk -using Base.Broadcast: broadcastable +using Test @testset "ChainRulesCore" begin @testset "differentials" begin