Spaces:
Paused
Paused
| import AppKit | |
| import Testing | |
| @testable import OpenClaw | |
| struct CritterIconRendererTests { | |
| func makeIconRendersExpectedSize() { | |
| let image = CritterIconRenderer.makeIcon( | |
| blink: 0.25, | |
| legWiggle: 0.5, | |
| earWiggle: 0.2, | |
| earScale: 1, | |
| earHoles: true, | |
| badge: nil) | |
| #expect(image.size.width == 18) | |
| #expect(image.size.height == 18) | |
| #expect(image.tiffRepresentation != nil) | |
| } | |
| func makeIconRendersWithBadge() { | |
| let image = CritterIconRenderer.makeIcon( | |
| blink: 0, | |
| legWiggle: 0, | |
| earWiggle: 0, | |
| earScale: 1, | |
| earHoles: false, | |
| badge: .init(symbolName: "terminal.fill", prominence: .primary)) | |
| #expect(image.tiffRepresentation != nil) | |
| } | |
| func critterStatusLabelExercisesHelpers() async { | |
| await CritterStatusLabel.exerciseForTesting() | |
| } | |
| } | |