Files
swift-mirror/test/Interpreter/SDK/Foundation_NSLocalizedString.swift
Graham Batty 83f27a8af7 Revert "Mark tests that don't pass on linux as XFAIL."
This reverts commit 2711ca86de7bf6a7885ccea24219a48a590b1e95.

Swift SVN r23577
2014-11-24 17:42:13 +00:00

16 lines
439 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
import Foundation
let key = "inquiens"
let value = "λαμπερός"
let s1 = NSLocalizedString(key, comment: "Hello")
// CHECK: key = inquiens s1 = inquiens
println("key = \(key) s1 = \(s1)")
let s2 = NSLocalizedString(key, tableName:nil, bundle: NSBundle.mainBundle(), value: value, comment: "Hello")
// CHECK: key = inquiens s2 = λαμπερός
println("key = \(key) s2 = \(s2)")