-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #354 from armanbilge/fix-353
Make flaky numeric test JVM-only
- Loading branch information
Showing
6 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package org.typelevel.jawn | ||
package ast | ||
|
||
private[jawn] trait AstTestPlatform |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.typelevel.jawn | ||
package ast | ||
|
||
import org.scalacheck.Prop | ||
|
||
import Prop.forAll | ||
|
||
private[jawn] trait AstTestPlatform { self: AstTest => | ||
|
||
// See https://github.com/typelevel/jawn/issues/353 | ||
|
||
property(".getDouble") = forAll { (n: Double) => | ||
Prop( | ||
JNum(n).getDouble == Some(n) && | ||
JParser.parseUnsafe(n.toString).getDouble == Some(n) | ||
) | ||
} | ||
|
||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters