anoter compressed string test
This commit is contained in:
parent
19abe7a2a5
commit
7b1093fb16
|
@ -36,5 +36,11 @@ public class CompressedStringTests {
|
|||
CompressedString cstr = new CompressedString(str);
|
||||
assertThat(cstr.string(), equalTo(str));
|
||||
assertThat(new CompressedString(str), equalTo(cstr));
|
||||
|
||||
String str2 = "this is a simple string 2";
|
||||
CompressedString cstr2 = new CompressedString(str2);
|
||||
assertThat(cstr2.string(), not(equalTo(str)));
|
||||
assertThat(new CompressedString(str2), not(equalTo(cstr)));
|
||||
assertThat(new CompressedString(str2), equalTo(cstr2));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue