We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ab7b14 commit dbcee44Copy full SHA for dbcee44
Tests/AWSLambdaRuntimeTests/LambdaClockTests.swift
@@ -143,5 +143,12 @@ struct LambdaClockTests {
143
144
let expectedString = "\(instant)"
145
#expect(expectedString.allSatisfy { $0.isNumber }, "String should only contain numbers")
146
+
147
+ if let expectedNumber = Int64(expectedString) {
148
+ let newInstant = LambdaClock.Instant(millisecondsSinceEpoch: expectedNumber)
149
+ #expect(instant == newInstant, "Instant should match the expected number")
150
+ } else {
151
+ Issue.record("expectedString is not a number")
152
+ }
153
}
154
0 commit comments