// RUN: %target-swift-ide-test -print-comments -source-filename %S/Inputs/comment_extensions.swift -comments-xml-schema %S/../../bindings/xml/comment-xml-schema.rng | FileCheck %s // Content is in separate file in ./Inputs due to the "requires" keyword getting // recognized by lit. // CHECK: {{.*}}DocCommentAsXML=[attention()s:F14swift_ide_test9attentionFT_T_func attention()This function is so hip and exciting, it can't be trusted.] // CHECK: {{.*}}DocCommentAsXML=[author()s:F14swift_ide_test6authorFT_T_func author()Stephen] // CHECK: {{.*}}DocCommentAsXML=[authors()s:F14swift_ide_test7authorsFT_T_func authors()HomerMarkJ.] // CHECK: {{.*}}DocCommentAsXML=[bug()s:F14swift_ide_test3bugFT_T_func bug()rdar://problem/8675309] // CHECK: {{.*}}DocCommentAsXML=[complexity()s:F14swift_ide_test10complexityFT_T_func complexity()O(n log2(n))] // CHECK: {{.*}}DocCommentAsXML=[copyright()s:F14swift_ide_test9copyrightFT_T_func copyright()2015 Apple, Inc.] // CHECK: {{.*}}DocCommentAsXML=[date()s:F14swift_ide_test4dateFT_T_func date()Thu Apr 23 22:38:09 PDT 2015] // CHECK: {{.*}}DocCommentAsXML=[experiment()s:F14swift_ide_test10experimentFT_T_func experiment()Try some more. The strawberries taste like strawberries.] // CHECK: {{.*}}DocCommentAsXML=[Invariants:V14swift_ide_test9Invariantstruct Invariantx not nil] // CHECK: {{.*}}DocCommentAsXML=none // CHECK: {{.*}}DocCommentAsXML=[note()s:F14swift_ide_test4noteFT_T_func note()This function is very hip and exciting.] // CHECK: {{.*}}DocCommentAsXML=[postcondition(_:)s:F14swift_ide_test13postconditionFRSiT_func postcondition(x: inout Int)x is unchanged] // CHECK: {{.*}}DocCommentAsXML=none // CHECK: {{.*}}DocCommentAsXML=[precondition(_:)s:F14swift_ide_test12preconditionFSiT_func precondition(x: Int)x < 100] // CHECK: {{.*}}DocCommentAsXML=none // CHECK: {{.*}}DocCommentAsXML=[remark()s:F14swift_ide_test6remarkFT_T_func remark()Always, no, never forget to check your references.] // CHECK: {{.*}}DocCommentAsXML=[remarks()s:F14swift_ide_test7remarksFT_T_func remarks()Never let a bear approach you.] // CHECK: {{.*}}DocCommentAsXML=[requires()s:F14swift_ide_test8requiresFT_T_func requires()explicit package name. Just kidding!] // CHECK: {{.*}}DocCommentAsXML=[see()s:F14swift_ide_test3seeFT_T_func see()the pie (it's very good).] // CHECK: {{.*}}DocCommentAsXML=[since()s:F14swift_ide_test5sinceFT_T_func since()1809] // CHECK: {{.*}}DocCommentAsXML=[todo()s:F14swift_ide_test4todoFT_T_func todo()beor not to be] // CHECK: {{.*}}DocCommentAsXML=[version()s:F14swift_ide_test7versionFT_T_func version()Beta.] // CHECK: {{.*}}DocCommentAsXML=[warning()s:F14swift_ide_test7warningFT_T_func warning()Share the road.] // CHECK: {{.*}}DocCommentAsXML=[imageWithEmptyURLAndBogusTitle()s:F14swift_ide_test30imageWithEmptyURLAndBogusTitleFT_T_func imageWithEmptyURLAndBogusTitle()]]>] // CHECK: {{.*}}DocCommentAsXML=[imageTitleAndAlt()s:F14swift_ide_test16imageTitleAndAltFT_T_func imageTitleAndAlt()Brief.]]>] // CHECK: {{.*}}DocCommentAsXML=[imageAlt()s:F14swift_ide_test8imageAltFT_T_func imageAlt()Brief.]]>] // CHECK: {{.*}}DocCommentAsXML=[imageTitle()s:F14swift_ide_test10imageTitleFT_T_func imageTitle()Brief.]]>] // CHECK: {{.*}}DocCommentAsXML=[urlWithQueryString()s:F14swift_ide_test18urlWithQueryStringFT_T_func urlWithQueryString()Brief.Test a link] // CHECK: {{.*}}DocCommentAsXML=[imageWithAmpersandsInTitleAndAlt()s:F14swift_ide_test32imageWithAmpersandsInTitleAndAltFT_T_func imageWithAmpersandsInTitleAndAlt()Brief.]]>]