Several fixes and optimizations all over the library #28

Merged
javier merged 22 commits from library/several-fixes-and-optimizations into main 2026-07-26 09:56:33 +00:00
Showing only changes of commit bfa839b058 - Show all commits
@@ -175,8 +175,8 @@ struct AmiiboServiceLiveTests {
@Test @Test
func `get the last updated timestamp`() async throws { func `get the last updated timestamp`() async throws {
try await assertLastUpdated( try await assertLastUpdated(
day: 2, day: 24,
month: 6, month: 7,
year: 2026 year: 2026
) )
} }
@@ -324,8 +324,8 @@ struct AmiiboServiceLiveTests {
@Test("get last updated timestamp") @Test("get last updated timestamp")
func getLastUpdated() async throws { func getLastUpdated() async throws {
try await assertLastUpdated( try await assertLastUpdated(
day: 2, day: 24,
month: 6, month: 7,
year: 2026 year: 2026
) )
} }
@@ -661,7 +661,7 @@ enum Input {
enum Output { enum Output {
/// A list of number of items that are expected from the `assertAmiibos` assertion. /// A list of number of items that are expected from the `assertAmiibos` assertion.
static let amiibos: [Int] = [.totalAmiibos, 7, 7, 1, 1, 1, .zero, .zero, 5, .zero, 7, .totalAmiibos, 250, 250, .zero, .zero, .zero, .zero, 96, 26, .zero, .zero, 63, .totalAmiibos, 14, 6, .zero, .zero, .zero, .totalAmiibos, 53, 32, .zero, .zero, 152, .totalAmiibos, .totalAmiibos, .totalAmiibos] static let amiibos: [Int] = [.totalAmiibos, 7, 7, 1, 1, 1, .zero, .zero, 5, .zero, 7, .totalAmiibos, 254, 254, .zero, .zero, .zero, .zero, 96, 26, .zero, .zero, 63, .totalAmiibos, 14, 6, .zero, .zero, .zero, .totalAmiibos, 53, 32, .zero, .zero, 152, .totalAmiibos, .totalAmiibos, .totalAmiibos]
/// A list of errors are expected to be thrown from the `assertAmiibosThrows` assertion. /// A list of errors are expected to be thrown from the `assertAmiibosThrows` assertion.
static let amiibosThrows: [AmiiboServiceError] = [.badRequest, .badRequest, .badRequest, .badRequest, .badRequest, .badRequest, .badRequest] static let amiibosThrows: [AmiiboServiceError] = [.badRequest, .badRequest, .badRequest, .badRequest, .badRequest, .badRequest, .badRequest]
/// A list of number of items that are expected from the `assertAmiiboSeries` assertion. /// A list of number of items that are expected from the `assertAmiiboSeries` assertion.
@@ -686,7 +686,7 @@ enum Output {
private extension Int { private extension Int {
/// A number that represents the total number of amiibo items currently available at the live service. /// A number that represents the total number of amiibo items currently available at the live service.
static let totalAmiibos = 942 static let totalAmiibos = 946
/// A number that represents the total number of amiibo series currently available at the live service. /// A number that represents the total number of amiibo series currently available at the live service.
static let totalAmiiboSeries = 31 static let totalAmiiboSeries = 31
/// A number that represents the total number of amiibo types currently available at the live service. /// A number that represents the total number of amiibo types currently available at the live service.