Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Sep 16, 2024
1 parent 6998897 commit 9fff2be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion example/src/getTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export function getTests(
.didNotThrow()
.equals('gas')
),
createTest('tryMiddleParam(...)', () =>
createTest('tryOptionalEnum(...)', () =>
it(() => testObject.tryOptionalEnum(undefined))
.didNotThrow()
.equals(undefined)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class HybridTestObjectKotlin: HybridTestObjectSwiftKotlinSpec() {
}


override fun tryOptionalEnum(powertrain: Powertrain?): Powertrain? {
return powertrain
override fun tryOptionalEnum(value: Powertrain?): Powertrain? {
return value
}

override fun calculateFibonacciSync(value: Double): Long {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ class HybridTestObjectSwift : HybridTestObjectSwiftKotlinSpec {
return str
}

func tryOptionalEnum(powertrain: Powertrain?) throws -> Powertrain? {
return powertrain
func tryOptionalEnum(value: Powertrain?) throws -> Powertrain? {
return value
}

func calculateFibonacciSync(value: Double) throws -> Int64 {
Expand Down

0 comments on commit 9fff2be

Please sign in to comment.