[Bug 5690] CVS: Static Typing: FunctX tests needs adjustment

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5690





------- Comment #4 from nick@cbcl.co.uk  2008-05-16 16:33 -------
Similarly for functx-functx-max-line-length-* the function:

declare function functx:max-line-length
  ( $arg as xs:string? )  as xs:integer {

   max(
     for $line in functx:lines($arg)
     return string-length($line))
 } ;

May return at empty-sequence if $arg is an empty sequence, so I think should
have return type xs:integer? in the normal version rather than a static-typing
specific version.

Received on Friday, 16 May 2008 16:34:42 UTC