Skip to content

Commit

Permalink
Update CarrierFreqUtilsTest.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
Narugakuruga authored Nov 6, 2023
1 parent 525f187 commit 210965a
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ class CarrierFreqUtilsTest {
snas130B1C.carrierFrequencyHz = 1575420000.0
snas130B1C.sbasType = SbasType.SNAS

label = CarrierFreqUtils.getCarrierFrequencyLabel(snas130B1C)
label = CarrierFreqUtils.getCarrierFrequencyLabel(snas130B1C, GnssType.BEIDOU)
assertEquals("B1C", label)

// BDSBAS 130 B2a
Expand All @@ -709,7 +709,7 @@ class CarrierFreqUtilsTest {
snas130B2a.carrierFrequencyHz = 1176450000.0
snas130B2a.sbasType = SbasType.SNAS

label = CarrierFreqUtils.getCarrierFrequencyLabel(snas130B2a)
label = CarrierFreqUtils.getCarrierFrequencyLabel(snas130B2a, GnssType.BEIDOU)
assertEquals("B2a", label)

// BDSBAS 143 B1C
Expand All @@ -725,7 +725,7 @@ class CarrierFreqUtilsTest {
snas143B1C.carrierFrequencyHz = 1575420000.0
snas143B1C.sbasType = SbasType.SNAS

label = CarrierFreqUtils.getCarrierFrequencyLabel(snas143B1C)
label = CarrierFreqUtils.getCarrierFrequencyLabel(snas143B1C, GnssType.BEIDOU)
assertEquals("B1C", label)

// BDSBAS 143 B2a
Expand All @@ -741,7 +741,7 @@ class CarrierFreqUtilsTest {
snas143B2a.carrierFrequencyHz = 1176450000.0
snas143B2a.sbasType = SbasType.SNAS

label = CarrierFreqUtils.getCarrierFrequencyLabel(snas143B2a)
label = CarrierFreqUtils.getCarrierFrequencyLabel(snas143B2a, GnssType.BEIDOU)
assertEquals("B2a", label)

// BDSBAS 144 B1C
Expand All @@ -757,7 +757,7 @@ class CarrierFreqUtilsTest {
snas144B1C.carrierFrequencyHz = 1575420000.0
snas144B1C.sbasType = SbasType.SNAS

label = CarrierFreqUtils.getCarrierFrequencyLabel(snas144B1C)
label = CarrierFreqUtils.getCarrierFrequencyLabel(snas144B1C, GnssType.BEIDOU)
assertEquals("B1C", label)

// BDSBAS 144 B2a
Expand All @@ -773,7 +773,7 @@ class CarrierFreqUtilsTest {
snas144B2a.carrierFrequencyHz = 1176450000.0
snas144B2a.sbasType = SbasType.SNAS

label = CarrierFreqUtils.getCarrierFrequencyLabel(snas144B2a)
label = CarrierFreqUtils.getCarrierFrequencyLabel(snas144B2a, GnssType.BEIDOU)
assertEquals("B2a", label)

// Test variations on the "same" numbers to make sure floating point equality works
Expand Down

0 comments on commit 210965a

Please sign in to comment.