Skip to content

Commit

Permalink
increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperjj committed Aug 18, 2016
1 parent 430de0c commit 5d5954d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = '1.2.0'
version = '1.2.1'

group = "me.doubledutch"
archivesBaseName = "lazyjson"
Expand Down Expand Up @@ -82,8 +82,8 @@ jar {
attributes 'Implementation-Title': 'LazyJSON Library', 'Implementation-Version': version
}
}

/*uploadArchives {
/*
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
Expand Down
8 changes: 4 additions & 4 deletions src/main/resources/version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Wed Aug 17 15:41:31 PDT 2016
BUILD_VERSION=1.2.0
BUILD_DATE=2016-08-17T22\:41\:31Z
BUILD_NUMBER=573
#Wed Aug 17 18:32:06 PDT 2016
BUILD_VERSION=1.2.1
BUILD_DATE=2016-08-18T01\:32\:06Z
BUILD_NUMBER=577
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ public void testDecompress() throws Exception{
byte[] out=c.compress(str);
// System.out.println(out.length+" vs "+str.length());
LazyObject obj=c.decompressObject(out);
assertEquals(obj.toString(),str);
LazyElement elm=c.decompressElement(out);
assertEquals(elm.toString(),str);
String str2="[1,2,3]";
byte[] out2=c.compress(str2);
LazyArray arr=c.decompressArray(out2);
assertEquals(str2,arr.toString());
// String str2=c.decompress(out);
// assertEquals(str,str2);
}
Expand Down

0 comments on commit 5d5954d

Please sign in to comment.