Files
orca/native/computer-use-macos/Tests/OrcaComputerUseMacOSTests/NumericArgumentParsingTests.swift
T

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))
}
}