Files
swift-mirror/test/Interpreter/SDK/Foundation_NSLocalizedString.swift
Arnold Schwaighofer 859fbc0162 More executable_test for the test directory
Swift SVN r29280
2015-06-03 23:28:51 +00:00

19 lines
491 B
Swift
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// RUN: %target-run-simple-swift | FileCheck %s
// REQUIRES: executable_test
// REQUIRES: objc_interop
import Foundation
let key = "inquiens"
let value = "λαμπερός"
let s1 = NSLocalizedString(key, comment: "Hello")
// CHECK: key = inquiens s1 = inquiens
print("key = \(key) s1 = \(s1)")
let s2 = NSLocalizedString(key, tableName:nil, bundle: NSBundle.mainBundle(), value: value, comment: "Hello")
// CHECK: key = inquiens s2 = λαμπερός
print("key = \(key) s2 = \(s2)")