Last change
on this file since 6671 was 6671, checked in by simon04, 11 years ago |
fix #9560 - IllegalArgumentException when color.layer contains "{ }"
|
File size:
300 bytes
|
Rev | Line | |
---|
[6671] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
| 2 | package org.openstreetmap.josm.tools
|
---|
| 3 |
|
---|
| 4 | class I18nTest extends GroovyTestCase {
|
---|
| 5 | void testEscape() {
|
---|
| 6 | def foobar = "{foo'bar}"
|
---|
| 7 | assert I18n.escape(foobar) == "'{'foo''bar'}'"
|
---|
| 8 | assert I18n.tr(I18n.escape(foobar)) == foobar
|
---|
| 9 | }
|
---|
| 10 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.