Files
swift-mirror/test/SourceKit/ExtractComment/extract_comments.swift
Argyrios Kyrtzidis 8ff6a98a99 [sourcekit] Merge SourceKit into the Swift repo.
The code goes into its own sub-tree under 'tools' but tests go under 'test',
so that running 'check-swift' will also run all the SourceKit tests.

SourceKit is disabled on non-darwin platforms.
2015-11-05 01:09:08 -08:00

28 lines
1.8 KiB
Swift

// RUN: %sourcekitd-test -req=extract-comment -pass-as-sourcetext %S/Inputs/DocComment1.swift > %t.DocComment1.response
// RUN: diff -u %s.DocComment1.response %t.DocComment1.response
// RUN: %sourcekitd-test -req=extract-comment -pass-as-sourcetext %S/Inputs/DocComment2.swift > %t.DocComment2.response
// RUN: diff -u %s.DocComment2.response %t.DocComment2.response
// RUN: %sourcekitd-test -req=extract-comment -pass-as-sourcetext %S/Inputs/DocComment3.swift > %t.DocComment3.response
// RUN: diff -u %s.DocComment3.response %t.DocComment3.response
// RUN: %sourcekitd-test -req=extract-comment -pass-as-sourcetext %S/Inputs/DocCommentEmptyLine1.swift > %t.DocCommentEmptyLine1.response
// RUN: diff -u %s.DocCommentEmptyLine1.response %t.DocCommentEmptyLine1.response
// RUN: %sourcekitd-test -req=extract-comment -pass-as-sourcetext %S/Inputs/DocCommentEmptyLine2.swift > %t.DocCommentEmptyLine2.response
// RUN: diff -u %s.DocCommentEmptyLine2.response %t.DocCommentEmptyLine2.response
// RUN: %sourcekitd-test -req=extract-comment -pass-as-sourcetext %S/Inputs/DocCommentEmptyLine3.swift > %t.DocCommentEmptyLine3.response
// RUN: diff -u %s.DocCommentEmptyLine3.response %t.DocCommentEmptyLine3.response
// RUN: %sourcekitd-test -req=extract-comment -pass-as-sourcetext %S/Inputs/Comment1.swift > %t.Comment1.response
// RUN: diff -u %s.Comment1.response %t.Comment1.response
// RUN: %sourcekitd-test -req=extract-comment -pass-as-sourcetext %S/Inputs/CommentIndent1.swift > %t.CommentIndent1.response
// RUN: diff -u %s.CommentIndent1.response %t.CommentIndent1.response
// RUN: %sourcekitd-test -req=extract-comment -pass-as-sourcetext %S/Inputs/CommentIndent2.swift > %t.CommentIndent2.response
// RUN: diff -u %s.CommentIndent2.response %t.CommentIndent2.response
// RUN: %sourcekitd-test -req=extract-comment -pass-as-sourcetext %S/Inputs/NotComment1.swift