Skip to content

Commit

Permalink
Changed latest version to be 25
Browse files Browse the repository at this point in the history
  • Loading branch information
depryf committed Jul 17, 2024
1 parent 0b30e21 commit 3279703
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/imsweb/naaccrxml/NaaccrFormat.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public final class NaaccrFormat {
}

// "latest" version
public static final String NAACCR_VERSION_LATEST = NAACCR_VERSION_240;
public static final String NAACCR_VERSION_LATEST = NAACCR_VERSION_250;

public static boolean isVersionSupported(String version) {
return _SUPPORTED_VERSIONS.contains(version);
Expand Down
6 changes: 6 additions & 0 deletions src/test/java/com/imsweb/naaccrxml/NaaccrFormatTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import static com.imsweb.naaccrxml.NaaccrFormat.NAACCR_VERSION_160;
import static com.imsweb.naaccrxml.NaaccrFormat.NAACCR_VERSION_180;
import static com.imsweb.naaccrxml.NaaccrFormat.NAACCR_VERSION_210;
import static com.imsweb.naaccrxml.NaaccrFormat.NAACCR_VERSION_LATEST;

public class NaaccrFormatTest {

Expand Down Expand Up @@ -41,4 +42,9 @@ public void testLineLength() {
Assert.assertEquals(5564, NaaccrFormat.getInstance(NAACCR_VERSION_160, NAACCR_REC_TYPE_CONFIDENTIAL).getLineLength());
Assert.assertEquals(3339, NaaccrFormat.getInstance(NAACCR_VERSION_160, NAACCR_REC_TYPE_INCIDENCE).getLineLength());
}

@Test
public void testGetDisplayName() {
Assert.assertNotNull(NaaccrFormat.getInstance(NAACCR_VERSION_LATEST, NAACCR_REC_TYPE_ABSTRACT).getDisplayName());
}
}

0 comments on commit 3279703

Please sign in to comment.