Skip to content

Commit

Permalink
Fixed unit test
Browse files Browse the repository at this point in the history
Updated version to 1.2.0-RC2
  • Loading branch information
chrissenior committed May 24, 2021
1 parent 3ad5bcc commit 73138ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description = 'Java progress reporting library'

allprojects {
group = 'com.asteroid.duck.progress'
version = '1.2.0-RC1'
version = '1.2.0-RC2'
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ public void tearDown() throws Exception {
public void testFormat() {
ProgressFormat f = SimpleProgressFormat.DEFAULT;
String result = f.format(subTask);
assertEquals("[ 0/10] ( 0%) - > SubTask [ 50/100] ( 50%) - Half", result);
assertEquals("[ 0/10] ( 0%) - > SubTask [ 50/100] ( 50%) - Half", result);
result = f.format(subject);
assertEquals("[ 0/10] ( 0%) - ", result);
assertEquals("[ 0/10] ( 0%) - ", result);
subTask.done();
result = f.format(subject);
assertEquals("[ 4/10] ( 40%) - SubTask", result);
assertEquals("[ 4/10] ( 40%) - SubTask", result);
}

}

0 comments on commit 73138ad

Please sign in to comment.