This is an automated email from the ASF dual-hosted git repository.
jadams pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/daffodil.git
The following commit(s) were added to refs/heads/master by this push:
new 8a40595 Updated test to check for both '.' or ','
8a40595 is described below
commit 8a4059545382bade504ae6db16c64bf5398b47e9
Author: Josh Adams <[email protected]>
AuthorDate: Wed Apr 7 17:00:34 2021 -0400
Updated test to check for both '.' or ','
Using the following settings:
export SBT_OPTS="-Xss2M -Xmx5G -Xms5G -Duser.country=DE
-Duser.language=de"
Results in floating point numbers using a ',' instead of a '.' (ie.
'3,0' instead of '3.0'. Updated test to use a regex to check for both
symbols.
DAFFODIL-2492
---
daffodil-lib/src/test/scala/org/apache/daffodil/util/TestLogger.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/daffodil-lib/src/test/scala/org/apache/daffodil/util/TestLogger.scala
b/daffodil-lib/src/test/scala/org/apache/daffodil/util/TestLogger.scala
index fd9ae42..aad8374 100644
--- a/daffodil-lib/src/test/scala/org/apache/daffodil/util/TestLogger.scala
+++ b/daffodil-lib/src/test/scala/org/apache/daffodil/util/TestLogger.scala
@@ -86,7 +86,7 @@ class TestLogger {
a.setLoggingLevel(LogLevel.Error)
a.setLogWriter(lw)
a.logSomething()
- assertTrue(lw.loggedMsg.contains("Message: int=1 float=3.0"))
+ assertTrue(lw.loggedMsg matches ".*Message: int=1 float=3[.,]0.*")
}
}