Added UTF-8 test.

This commit is contained in:
moandji.ezana 2014-04-07 15:42:49 +02:00
parent ecf83ff8a3
commit a8e1acdba7
2 changed files with 2 additions and 0 deletions

View file

@ -48,6 +48,7 @@ public class RealWorldTest {
Toml betaServers = servers.getTable("beta");
assertEquals("10.0.0.2", betaServers.getString("ip"));
assertEquals("eqdc10", betaServers.getString("dc"));
assertEquals("中国", betaServers.getString("country"));
Toml clients = toml.getTable("clients");
assertEquals(asList(asList("gamma", "delta"), asList(1L, 2L)), clients.getList("data", String.class));

View file

@ -24,6 +24,7 @@ enabled = true
[servers.beta]
ip = "10.0.0.2"
dc = "eqdc10"
country = "中国" # This should be parsed as UTF-8
[clients]
data = [ ["gamma", "delta"], [1, 2] ] # just an update to make sure parsers support it