Skip to main content
Glama
SimpleTests.swift955 B
import Testing @Test("Basic truth assertions") func basicTruthTest() { #expect(true == true) #expect(false == false) #expect(true != false) } @Test("Basic math operations") func basicMathTest() { #expect(2 + 2 == 4) #expect(5 - 3 == 2) #expect(3 * 4 == 12) #expect(10 / 2 == 5) } @Test("String operations") func stringTest() { let greeting = "Hello" let world = "World" #expect(greeting + " " + world == "Hello World") #expect(greeting.count == 5) #expect(world.isEmpty == false) } @Test("Array operations") func arrayTest() { let numbers = [1, 2, 3, 4, 5] #expect(numbers.count == 5) #expect(numbers.first == 1) #expect(numbers.last == 5) #expect(numbers.contains(3) == true) } @Test("Optional handling") func optionalTest() { let someValue: Int? = 42 let nilValue: Int? = nil #expect(someValue != nil) #expect(nilValue == nil) #expect(someValue! == 42) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SampsonKY/XcodeBuildMCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server