Elias Naur | 80b31c0 | 2016-06-27 21:38:04 +0200 | [diff] [blame] | 1 | // Copyright 2016 The Go Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style | ||||
3 | // license that can be found in the LICENSE file. | ||||
4 | |||||
5 | package time_test | ||||
6 | |||||
7 | import ( | ||||
8 | "testing" | ||||
9 | . "time" | ||||
10 | ) | ||||
11 | |||||
12 | func TestAndroidTzdata(t *testing.T) { | ||||
13 | ForceAndroidTzdataForTest(true) | ||||
14 | defer ForceAndroidTzdataForTest(false) | ||||
15 | if _, err := LoadLocation("America/Los_Angeles"); err != nil { | ||||
16 | t.Error(err) | ||||
17 | } | ||||
18 | } |