Skip to content

Commit

Permalink
Bump to v0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowers committed Aug 24, 2018
1 parent ff73295 commit 64dac8b
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 45 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spName := "MrPowers/spark-fast-tests"
spShortDescription := "Fast tests with Spark"
spDescription := "Test your code quickly"

version := "2.3.0_0.13.1"
version := "2.3.0_0.14.0"
scalaVersion := "2.11.12"
sparkVersion := "2.3.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,27 +338,27 @@ object DatasetComparerTest
'assertApproximateDataFrameEquality - {

"does nothing if the DataFrames have the same schemas and content" - {
val sourceDF = spark.createDF(
List(
(1.2),
(5.1),
(null)
), List(
("number", DoubleType, true)
)
)

val expectedDF = spark.createDF(
List(
(1.2),
(5.1),
(null)
), List(
("number", DoubleType, true)
)
)

assertApproximateDataFrameEquality(sourceDF, expectedDF, 0.01)
val sourceDF = spark.createDF(
List(
(1.2),
(5.1),
(null)
), List(
("number", DoubleType, true)
)
)

val expectedDF = spark.createDF(
List(
(1.2),
(5.1),
(null)
), List(
("number", DoubleType, true)
)
)

assertApproximateDataFrameEquality(sourceDF, expectedDF, 0.01)
}

"throws an error if the rows are different" - {
Expand Down Expand Up @@ -410,29 +410,29 @@ assertApproximateDataFrameEquality(sourceDF, expectedDF, 0.01)
}
}

// "works with FloatType columns" - {
// val sourceDF = spark.createDF(
// List(
// (1.2),
// (5.1),
// (null)
// ), List(
// ("number", FloatType, true)
// )
// )
//
// val expectedDF = spark.createDF(
// List(
// (1.2),
// (5.1),
// (null)
// ), List(
// ("number", FloatType, true)
// )
// )
//
// assertApproximateDataFrameEquality(sourceDF, expectedDF, 0.01)
// }
// "works with FloatType columns" - {
// val sourceDF = spark.createDF(
// List(
// (1.2),
// (5.1),
// (null)
// ), List(
// ("number", FloatType, true)
// )
// )
//
// val expectedDF = spark.createDF(
// List(
// (1.2),
// (5.1),
// (null)
// ), List(
// ("number", FloatType, true)
// )
// )
//
// assertApproximateDataFrameEquality(sourceDF, expectedDF, 0.01)
// }

}

Expand Down

0 comments on commit 64dac8b

Please sign in to comment.