source: josm/trunk/test/unit/org/openstreetmap/josm/tools/I18nTest.groovy@ 6671

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
RevLine 
[6671]1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools
3
4class 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.