mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-03 02:31:35 +00:00
22 lines
614 B
Swift
22 lines
614 B
Swift
import CoreMotion
|
|
import Testing
|
|
@testable import OpenClaw
|
|
|
|
struct MotionServiceTests {
|
|
@Test func `first motion query can request authorization`() {
|
|
#expect(MotionService.allowsMotionQuery(.notDetermined))
|
|
}
|
|
|
|
@Test func `authorized motion queries remain allowed`() {
|
|
#expect(MotionService.allowsMotionQuery(.authorized))
|
|
}
|
|
|
|
@Test func `denied motion queries remain blocked`() {
|
|
#expect(!MotionService.allowsMotionQuery(.denied))
|
|
}
|
|
|
|
@Test func `restricted motion queries remain blocked`() {
|
|
#expect(!MotionService.allowsMotionQuery(.restricted))
|
|
}
|
|
}
|