mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 18:37:24 +00:00
13 lines
376 B
Swift
13 lines
376 B
Swift
import XCTest
|
|
@testable import OrcaComputerUseMacOSCore
|
|
|
|
final class NumericArgumentParsingTests: XCTestCase {
|
|
|
|
|
|
// Int(1e300) traps despite being finite; malformed requests must not crash the agent.
|
|
func testReturnsNilForOutOfRangeValues() {
|
|
XCTAssertNil(boundedInteger(1e300, as: Int.self))
|
|
XCTAssertNil(boundedInteger(-1e300, as: Int.self))
|
|
}
|
|
}
|