Files
swift-mirror/test/refactoring/LongNumber/basic.swift
Saleem Abdulrasool b67d5f0cf7 test: convert rm -rf && mkdir -p into %empty-directory
This converts the instances of the pattern for which we have a proper
substitution in lit.  This will make it easier to replace it
appropriately with Windows equivalents.
2018-03-06 14:30:54 -08:00

17 lines
811 B
Swift

func foo() {
_ = 1234567
_ = 1234567.12345
_ = +1234567
_ = -1234567
}
// RUN: %empty-directory(%t.result)
// RUN: %refactor -simplify-long-number -source-filename %s -pos=2:9 > %t.result/Integer.swift
// RUN: diff -u %S/Outputs/Integer.expected %t.result/Integer.swift
// RUN: %refactor -simplify-long-number -source-filename %s -pos=3:9 > %t.result/Float.swift
// RUN: diff -u %S/Outputs/Float.expected %t.result/Float.swift
// RUN: %refactor -simplify-long-number -source-filename %s -pos=4:11 > %t.result/PositiveInteger.swift
// RUN: diff -u %S/Outputs/PositiveInteger.expected %t.result/PositiveInteger.swift
// RUN: %refactor -simplify-long-number -source-filename %s -pos=5:7 > %t.result/NegativeInteger.swift
// RUN: diff -u %S/Outputs/NegativeInteger.expected %t.result/NegativeInteger.swift