mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Comprehensive rename of all openclaw references to hanzo-bot equivalents: - Package: openclaw → @hanzo/bot - Binary: openclaw → hanzo-bot - Types: OpenClaw* → Bot* - Env vars: OPENCLAW_* → BOT_* - Android: ai.openclaw.android → ai.hanzo.bot.android - iOS/macOS: ai.openclaw.* → ai.hanzo.* - Swift modules: OpenClaw* → Bot* - Plugins: openclaw.plugin.json → bot.plugin.json - Paths: .openclaw/ → .hanzo/bot/ - URLs: github.com/openclaw → github.com/hanzoai
25 lines
1.0 KiB
Swift
25 lines
1.0 KiB
Swift
import Testing
|
|
@testable import HanzoBot
|
|
|
|
@Suite struct CameraControllerClampTests {
|
|
@Test func clampQualityDefaultsAndBounds() {
|
|
#expect(CameraController.clampQuality(nil) == 0.9)
|
|
#expect(CameraController.clampQuality(0.0) == 0.05)
|
|
#expect(CameraController.clampQuality(0.049) == 0.05)
|
|
#expect(CameraController.clampQuality(0.05) == 0.05)
|
|
#expect(CameraController.clampQuality(0.5) == 0.5)
|
|
#expect(CameraController.clampQuality(1.0) == 1.0)
|
|
#expect(CameraController.clampQuality(1.1) == 1.0)
|
|
}
|
|
|
|
@Test func clampDurationDefaultsAndBounds() {
|
|
#expect(CameraController.clampDurationMs(nil) == 3000)
|
|
#expect(CameraController.clampDurationMs(0) == 250)
|
|
#expect(CameraController.clampDurationMs(249) == 250)
|
|
#expect(CameraController.clampDurationMs(250) == 250)
|
|
#expect(CameraController.clampDurationMs(1000) == 1000)
|
|
#expect(CameraController.clampDurationMs(60000) == 60000)
|
|
#expect(CameraController.clampDurationMs(60001) == 60000)
|
|
}
|
|
}
|