mirror of
https://github.com/plexusorg/toml4j.git
synced 2025-02-11 03:30:00 +00:00
Added UTF-8 test.
This commit is contained in:
parent
ecf83ff8a3
commit
a8e1acdba7
2 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue