1
-
2
1
//===----------------------------------------------------------------------===//
3
2
//
4
3
// This source file is part of the SwiftAWSLambdaRuntime open source project
15
14
16
15
import Testing
17
16
18
- @testable import APIGatewayLambda // to access the business code
17
+ @testable import APIGatewayLambda // to access the business code
19
18
20
19
let valuesToTest : [ ( String , String ) ] = [
21
- ( " hello world " , " Hello world " ) , // happy path
22
- ( " " , " " ) , // Empty string
23
- ( " a " , " A " ) , // Single character
24
- ( " A " , " A " ) , // Single uppercase character
25
- ( " HELLO WORLD " , " Hello world " ) , // All uppercase
26
- ( " hello world " , " Hello world " ) , // All lowercase
27
- ( " hElLo WoRlD " , " Hello world " ) , // Mixed case
28
- ( " 123abc " , " 123abc " ) , // Numeric string
29
- ( " !@#abc " , " !@#abc " ) // Special characters
20
+ ( " hello world " , " Hello world " ) , // happy path
21
+ ( " " , " " ) , // Empty string
22
+ ( " a " , " A " ) , // Single character
23
+ ( " A " , " A " ) , // Single uppercase character
24
+ ( " HELLO WORLD " , " Hello world " ) , // All uppercase
25
+ ( " hello world " , " Hello world " ) , // All lowercase
26
+ ( " hElLo WoRlD " , " Hello world " ) , // Mixed case
27
+ ( " 123abc " , " 123abc " ) , // Numeric string
28
+ ( " !@#abc " , " !@#abc " ) , // Special characters
30
29
]
31
30
32
31
@Suite ( " Business Tests " )
33
32
class BusinessTests {
34
33
35
34
@Test ( " Uppercased First " , arguments: valuesToTest)
36
- func uppercasedFirst( _ arg: ( String , String ) ) {
35
+ func uppercasedFirst( _ arg: ( String , String ) ) {
37
36
let input = arg. 0
38
37
let expectedOutput = arg. 1
39
38
#expect( input. uppercasedFirst ( ) == expectedOutput)
40
39
}
41
- }
40
+ }
0 commit comments