#if !os(tvOS)
import XCTest
@testable import Physarum
final class SpeciesSelectorTests: XCTestCase {
func testNilIsAllAndBroadcasts() {
XCTAssertTrue(speciesIsBroadcast(nil))
XCTAssertEqual(speciesFocus(nil), 0) // All displays species 0
}
func testConcreteSelectionFocusesAndDoesNotBroadcast() {
XCTAssertFalse(speciesIsBroadcast(1))
XCTAssertEqual(speciesFocus(2), 2)
}
func testChannelLabel() {
XCTAssertEqual(speciesChannelLabel(0), "R")
XCTAssertEqual(speciesChannelLabel(1), "G")
XCTAssertEqual(speciesChannelLabel(2), "B")
}
}
#endif