From 01b97b59f9af98aa014705c83a98cc96fe27f03e Mon Sep 17 00:00:00 2001 From: Vest Date: Sat, 11 Jan 2025 12:25:36 +0100 Subject: [PATCH] Added more logging to PcgenFtlTestCase.java (it will help to determine the difference between "golden" and generated files). Trimmed lines in base.xml and base-xml.ftl template. --- .../test/pcgen/inttest/PcgenFtlTestCase.java | 2 +- code/testsuite/base-xml.ftl | 24 ++++++++-------- code/testsuite/base.xml | 28 +++++++++---------- code/testsuite/csheets/pf_Paladin.xml | 6 ++-- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/code/src/test/pcgen/inttest/PcgenFtlTestCase.java b/code/src/test/pcgen/inttest/PcgenFtlTestCase.java index 8a020f71222..ad0ecd4c335 100644 --- a/code/src/test/pcgen/inttest/PcgenFtlTestCase.java +++ b/code/src/test/pcgen/inttest/PcgenFtlTestCase.java @@ -128,6 +128,6 @@ public static void runTest(String character, String mode) throws IOException .withTest(Input.fromString(actual)) .build(); - assertFalse(myDiff.hasDifferences(), myDiff.toString()); + assertFalse(myDiff.hasDifferences(), myDiff.fullDescription()); } } diff --git a/code/testsuite/base-xml.ftl b/code/testsuite/base-xml.ftl index 5801f06d4e9..2f83a9bf626 100644 --- a/code/testsuite/base-xml.ftl +++ b/code/testsuite/base-xml.ftl @@ -1,6 +1,6 @@ <#ftl encoding="UTF-8" strip_whitespace=true > -<#-- +<#-- # Freemarker template for the character integration tests. # Copyright James Dempsey, 2013 # @@ -57,7 +57,7 @@ ${class} - + <@pcstring tag="TOTALLEVELS"/> <@pcstring tag="ECL"/> @@ -187,7 +187,7 @@ ==================================== ====================================--> -<@loop from=0 to=pcvar('COUNT[STATS]-1') ; stat , stat_has_next > +<@loop from=0 to=pcvar('COUNT[STATS]-1') ; stat , stat_has_next > <@pcstring tag="STAT.${stat}.LONGNAME"/> @@ -202,7 +202,7 @@ <@pcstring tag="STAT.${stat}.NOTEMP"/> <@pcstring tag="STAT.${stat}.MOD.NOTEMP"/> - + <#if weaponCategory?lower_case?contains('both')> <#if !weaponCategory?lower_case?contains('ranged')> @@ -852,7 +852,7 @@ F F - + <@loop from=0 to=pcvar('countdistinct("ABILITIES","CATEGORY=FEAT","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=AUTOMATIC")-1') ; feat , feat_has_next > @@ -866,7 +866,7 @@ F F - + <@loop from=0 to=pcvar('COUNT[VFEATS.VISIBLE]-1') ; feat , feat_has_next > @@ -880,7 +880,7 @@ F T - + <@loop from=0 to=pcvar('COUNT[FEATS.HIDDEN]-1') ; feat , feat_has_next > @@ -1241,7 +1241,7 @@ <#else> - + <#if (pcvar('COUNT[SPELLRACE]') > 0) > <#assign spellbook = 1 /> @@ -1278,7 +1278,7 @@ - + <@loop from=2 to=pcvar('COUNT[SPELLBOOKS]-1') ; spellbook > <#assign foo = pcvar('COUNT[SPELLRACE]') /> diff --git a/code/testsuite/base.xml b/code/testsuite/base.xml index a8616a1fc79..09a73bacfe8 100644 --- a/code/testsuite/base.xml +++ b/code/testsuite/base.xml @@ -95,9 +95,9 @@ |HITDICE| |INTERESTS| -|FOR,%lang,0,COUNT[LANGUAGES]-1,1,0| +|FOR,%lang,0,COUNT[LANGUAGES]-1,1,0| |LANGUAGES.%lang| -|ENDFOR| +|ENDFOR| |LANGUAGES| |LOCATION| @@ -162,7 +162,7 @@ ==================================== ====================================--> -|FOR,%stat,0,COUNT[STATS]-1,1,0| +|FOR,%stat,0,COUNT[STATS]-1,1,0| |STAT.%stat.LONGNAME| @@ -177,7 +177,7 @@ |STAT.%stat.NOTEMP| |STAT.%stat.MOD.NOTEMP| -|ENDFOR| +|ENDFOR| - + |FOR,%weap,0,COUNT[EQTYPE.WEAPON]-1,1,1| |IIF(WEAPON.%weap.CATEGORY:BOTH)| @@ -1008,7 +1008,7 @@ ====================================--> -|FOR,%feat,0,countdistinct("ABILITIES","CATEGORY=FEAT","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=NORMAL")-1,1,0| +|FOR,%feat,0,countdistinct("ABILITIES","CATEGORY=FEAT","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=NORMAL")-1,1,0| |ABILITY.FEAT.VISIBLE.%feat| |ABILITY.FEAT.VISIBLE.%feat.DESC| @@ -1019,10 +1019,10 @@ F F -|ENDFOR| +|ENDFOR| -|FOR,%feat,0,countdistinct("ABILITIES","CATEGORY=FEAT","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=AUTOMATIC")-1,1,0| +|FOR,%feat,0,countdistinct("ABILITIES","CATEGORY=FEAT","VISIBILITY=DEFAULT[or]VISIBILITY=OUTPUT_ONLY","NATURE=AUTOMATIC")-1,1,0| |ABILITYAUTO.FEAT.VISIBLE.%feat| |ABILITYAUTO.FEAT.VISIBLE.%feat.DESC| @@ -1033,10 +1033,10 @@ F F -|ENDFOR| +|ENDFOR| -|FOR,%feat,0,COUNT[VFEATS.VISIBLE]-1,1,0| +|FOR,%feat,0,COUNT[VFEATS.VISIBLE]-1,1,0| |VFEAT.VISIBLE.%feat| |VFEAT.VISIBLE.%feat.DESC| @@ -1047,7 +1047,7 @@ F T -|ENDFOR| +|ENDFOR| |FOR,%feat,0,COUNT[FEATS.HIDDEN]-1,1,0| @@ -1511,7 +1511,7 @@ ==================================== ====================================--> -|%FOLLOWERTYPE.FAMILIAR| +|%FOLLOWERTYPE.FAMILIAR| |FOLLOWERTYPE.FAMILIAR.0.NAME| @@ -1881,7 +1881,7 @@ |ELSE| - + |FOR,%spellrace,COUNT[SPELLRACE],COUNT[SPELLRACE],1,0| |IIF(%spellrace:0)| |ELSE| diff --git a/code/testsuite/csheets/pf_Paladin.xml b/code/testsuite/csheets/pf_Paladin.xml index 4d74fa51b36..3ec79c95813 100644 --- a/code/testsuite/csheets/pf_Paladin.xml +++ b/code/testsuite/csheets/pf_Paladin.xml @@ -3286,7 +3286,7 @@ BIO Channel Positive Energy - You can unleash a wave of positive energy dealing 3d6 (DC 15 for half) /day. You can unleash a wave of positive energy. You must choose to deal 3d6 points of positive energy damage to undead creatures or to heal living creatures of 3d6 points of damage. Creatures that take damage from channeled energy receive a DC 15 Will save to halve the damage. Using this ability consumes two uses of her lay on hands ability. + You can unleash a wave of positive energy dealing 3d6 (DC 15 for half) 2/day. You can unleash a wave of positive energy. You must choose to deal 3d6 points of positive energy damage to undead creatures or to heal living creatures of 3d6 points of damage. Creatures that take damage from channeled energy receive a DC 15 Will save to halve the damage. Using this ability consumes two uses of her lay on hands ability. PALADINCLASSFEATURES.SPECIALATTACK.SUPERNATURAL.CHANNEL ENERGY.CHANNEL ENERGY POSITIVE.CHANNEL POSITIVE ENERGY 0 @@ -4878,7 +4878,7 @@ BIO - + @@ -4917,7 +4917,7 @@ BIO - +