mbeckerle commented on code in PR #1112:
URL: https://github.com/apache/daffodil/pull/1112#discussion_r1392923557
##########
daffodil-core/src/test/scala/org/apache/daffodil/core/infoset/TestInfoset.scala:
##########
@@ -183,16 +191,18 @@ class TestInfoset1 {
val (infoset: DIComplex, _, tunable) = testInfoset(testSchema, xmlInfoset)
val Seq(w_erd) = infoset.erd.childERDs
infoset.getChildArray(w_erd, tunable) match {
- case arr: DIArray => {
+ case arr: InfosetArray => {
assertEquals(2, arr.length)
- var a = arr(1).asInstanceOf[InfosetSimpleElement]
- assertEquals(w_erd, a.runtimeData)
+ var a = arr(1).asInstanceOf[InfosetSimpleElement] // 1-based
+ assertEquals(w_erd, a.metadata)
- assertEquals(4, a.dataValue.getAnyRef)
- assertEquals(infoset, a.parent)
+ assertEquals(4, a.getUnsignedLong.longValue().toInt)
Review Comment:
These return java types. java.math.BigInteger didn't seem to have a direct
conversion to int. Hence this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]