Commit 90b3e247 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #8699 from izeye:add-test-20170323

* pr/8699:
  Add a missing test for "Fix properties parsing for comment chars"
parents 8bfd42e3 46a0aaac
...@@ -111,6 +111,13 @@ public class OriginTrackedPropertiesLoaderTests { ...@@ -111,6 +111,13 @@ public class OriginTrackedPropertiesLoaderTests {
assertThat(getLocation(value)).isEqualTo("36:29"); assertThat(getLocation(value)).isEqualTo("36:29");
} }
@Test
public void getPropertyWithMultilineImmediateBang() {
OriginTrackedValue value = this.properties.get("test-multiline-immediate-bang");
assertThat(getValue(value)).isEqualTo("!foo");
assertThat(getLocation(value)).isEqualTo("39:1");
}
@Test @Test
public void getPropertyWithCarriageReturn() throws Exception { public void getPropertyWithCarriageReturn() throws Exception {
OriginTrackedValue value = this.properties.get("test-return-property"); OriginTrackedValue value = this.properties.get("test-return-property");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment