From a859cae085ce0c460ebe00c48d0c7778dd2cef67 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 15 Jun 2026 03:52:22 +0000 Subject: [PATCH] Add missing unit test for L1CO code generation Co-authored-by: shuwang1 <12467002+shuwang1@users.noreply.github.com> --- Tests/GNSSCodesTests/GNSSCodesTests.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tests/GNSSCodesTests/GNSSCodesTests.swift b/Tests/GNSSCodesTests/GNSSCodesTests.swift index e489eda..388259a 100644 --- a/Tests/GNSSCodesTests/GNSSCodesTests.swift +++ b/Tests/GNSSCodesTests/GNSSCodesTests.swift @@ -48,3 +48,9 @@ import Testing #expect(code != nil) #expect(code?.chips.count == 20460) // BOC(1,1) of 10230 is 20460 } + +@Test func testL1CO_PRN1() { + let code = GNSSCodes.generate(prn: 1, type: .L1CO) + #expect(code != nil) + #expect(code?.chips.count == 1800) +}