Skip to content

Commit

Permalink
Merge pull request #65 from stewartbryson/develop
Browse files Browse the repository at this point in the history
Corrected tests and examples.
  • Loading branch information
stewartbryson authored Jan 5, 2023
2 parents 538f923 + 30fd95f commit a2eddc7
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion examples/groovy-jar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repositories {
}

dependencies {
implementation 'org.codehaus.groovy:groovy:3.0.13'
implementation 'org.codehaus.groovy:groovy:3.0.14'
}

java {
Expand Down
2 changes: 1 addition & 1 deletion examples/groovy-jar/src/main/groovy/Sample.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Sample {
String addNum(Integer num1, Integer num2) {
try {
"The sum is: ${(num1 + num2)}"
"Sum is: ${(num1 + num2)}"
} catch (Exception e) {
null
}
Expand Down
2 changes: 1 addition & 1 deletion examples/kotlin-jar/src/main/kotlin/Sample.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Sample {
fun addNum(num1: Int, num2: Int): String {
try {
return "The sum is: " + (num1 + num2).toString()
return "Sum is: " + (num1 + num2).toString()
} catch (e: Exception) {
return null.toString()
}
Expand Down
2 changes: 1 addition & 1 deletion examples/scala-jar/src/main/scala/Sample.scala
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Sample {
def addNum(num1: Integer, num2: Integer): String = {
try {
"The sum is: " + (num1 + num2).toString()
"Sum is: " + (num1 + num2).toString()
} catch {
case e: Exception => return null
}
Expand Down
2 changes: 1 addition & 1 deletion plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ java {
}

dependencies {
implementation 'org.codehaus.groovy:groovy:3.0.13'
implementation 'org.codehaus.groovy:groovy:3.0.14'
implementation 'org.slf4j:slf4j-simple:2.0.6'
implementation 'com.snowflake:snowpark:1.6.2'
implementation 'gradle.plugin.com.redpillanalytics:gradle-properties:1.0.7'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class GroovyTest extends Specification {
|class Sample {
| String addNum(Integer num1, Integer num2) {
| try {
| "The sum is: ${(num1 + num2)}"
| "Sum is: ${(num1 + num2)}"
| } catch (Exception e) {
| null
| }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ class KotlinTest extends Specification {
|class Sample {
| fun addNum(num1: Int, num2: Int): String {
| try {
| return "The sum is: " + (num1 + num2).toString()
| "The sum is: ${(num1 + num2)}"
| return "Sum is: " + (num1 + num2).toString()
| } catch (e: Exception) {
| return null.toString()
| }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class ScalaTest extends Specification {
|class Sample {
| def addNum(num1: Integer, num2: Integer): String = {
| try {
| "The sum is: " + (num1 + num2).toString()
| "Sum is: " + (num1 + num2).toString()
| } catch {
| case e: Exception => return null
| }
Expand Down
2 changes: 1 addition & 1 deletion src/examples/groovy-jar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repositories {
}

dependencies {
implementation 'org.codehaus.groovy:groovy:3.0.13'
implementation 'org.codehaus.groovy:groovy:3.0.14'
}

java {
Expand Down

0 comments on commit a2eddc7

Please sign in to comment.