File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
main/xar-resources/modules Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -327,7 +327,7 @@ function app:print-function-header($function as element(xqdoc:function)) as elem
327327 <span class = "hljs-type" >{$para/xqdoc:type /string ()}</span>,
328328 $para/xqdoc:type /@occurrence/string () || $comma
329329 )
330- }) <span class = "hljs-keyword" >as </span>  <span class = "hljs-type" >{$function/xqdoc:return /xqdoc:type /string ()}</span>
330+ }) <span class = "hljs-keyword" >as </span>  <span class = "hljs-type" >{$function/xqdoc:return /xqdoc:type /string ()}</span>{$function/xqdoc: return /xqdoc: type /@occurrence/ string ()}
331331 </code></pre>
332332 </header>
333333};
Original file line number Diff line number Diff line change @@ -61,6 +61,15 @@ context('Function Documentation', () => {
6161 } )
6262 } )
6363
64+ describe ( 'Searching for a specific function, map:keys' , ( ) => {
65+ it ( 'should show the correct function signature' , ( ) => {
66+ cy . visit ( '?q=map%3Akeys' ) . get ( '.signature' )
67+ . should ( 'have.text' , 'map:keys($map as map(*)) as xs:anyAtomicType*' )
68+ } )
69+ } )
70+
71+
72+
6473 describe ( 'browse' , ( ) => {
6574 it ( 'should find local modules' , ( ) => {
6675 cy . get ( '#browse' )
You can’t perform that action at this time.
0 commit comments