Skip to content

Commit

Permalink
Add initial test for units/quantities
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuhlich committed Sep 1, 2020
1 parent 3db8f22 commit 0d63785
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions testing/units.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from ome_types.model import Channel


def test_length():
channel = Channel(excitation_wavelength=475, emission_wavelength=530)
assert (
channel.emission_wavelength_quantity - channel.excitation_wavelength_quantity
).m == 55

0 comments on commit 0d63785

Please sign in to comment.