mirror of
https://github.com/hanzoai/bot.git
synced 2026-11-01 07:38:30 +00:00
Automated rebrand of all openclaw references to hanzo bot: - Package: openclaw -> @hanzo/bot - Binary: openclaw -> hanzo-bot - Config: ~/.openclaw -> ~/.hanzo/bot - Docker: ghcr.io/hanzoai/bot - Env vars: OPENCLAW_* -> BOT_* - Bundle IDs: ai.hanzo.bot.* - Product name: Hanzo Bot
22 lines
586 B
Swift
22 lines
586 B
Swift
import Testing
|
|
@testable import Hanzo Bot
|
|
|
|
struct SemverTests {
|
|
@Test func `comparison orders by major minor patch`() {
|
|
let a = Semver(major: 1, minor: 0, patch: 0)
|
|
let b = Semver(major: 1, minor: 1, patch: 0)
|
|
let c = Semver(major: 1, minor: 1, patch: 1)
|
|
let d = Semver(major: 2, minor: 0, patch: 0)
|
|
|
|
#expect(a < b)
|
|
#expect(b < c)
|
|
#expect(c < d)
|
|
#expect(d > a)
|
|
}
|
|
|
|
@Test func `description matches parts`() {
|
|
let v = Semver(major: 3, minor: 2, patch: 1)
|
|
#expect(v.description == "3.2.1")
|
|
}
|
|
}
|