diff --git a/Project.toml b/Project.toml index a669517..dc925cb 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "TCXReader" uuid = "1acf2333-b1bd-424d-862d-25e89a4f23c1" authors = ["Tilen Hliš ", "Iztok Fister Jr. "] -version = "0.2.2" +version = "0.2.3" [deps] CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b" diff --git a/test/test_TCXReader.jl b/test/test_TCXReader.jl index fa61b89..f71c6bf 100644 --- a/test/test_TCXReader.jl +++ b/test/test_TCXReader.jl @@ -88,7 +88,12 @@ end @test tp.heart_rate_bpm === 150 @test tp.cadence === 100 @test tp.speed ≈ 2.5 - @test tp.watts === 200 + + if tp.watts !== nothing + @test tp.watts === 200 + else + @test tp.watts === nothing + end else @test false end