| 1 | package locale |
| 2 | |
| 3 | import ( |
| 4 | "testing" |
| 5 | ) |
| 6 | |
| 7 | func Test_detectViaRegistry(t *testing.T) { |
| 8 | langs, err := detectViaRegistry() |
| 9 | |
| 10 | t.Logf("langs: %v", langs) |
| 11 | |
| 12 | if err != nil { |
| 13 | t.Errorf("Expected no error, got: %v", err) |
| 14 | } |
| 15 | |
| 16 | if len(langs) == 0 { |
| 17 | t.Error("Expected non-empty langs, got empty slice") |
| 18 | } |
| 19 | } |