Skip to content

Commit

Permalink
tests: test weight_conversion with non existing units
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 authored and uncomfyhalomacro committed Jan 6, 2024
1 parent fa5dd9c commit 2dc61a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/conversions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ using TheAlgorithms.Conversions
1.660540199e-23
@test weight_conversion("atomic-mass-unit", "atomic-mass-unit", 2) ==
1.999999998903455
@test_throws ErrorException weight_conversion("kg", "wrong_unit", 1)
@test_throws ErrorException weight_conversion("wrong_unit", "kg", 1)
end

@testset "Conversions: Temparature Conversions" begin
Expand Down

0 comments on commit 2dc61a8

Please sign in to comment.