fixes Ditaa diagrama test assertion for Windows
MODIFY
asciidoctorj-distribution/src/test/groovy/org/asciidoctor/diagram/WhenDitaaDiagramIsRendered.groovy
asciidoctorj-distribution/src/test/groovy/org/asciidoctor/diagram/WhenDitaaDiagramIsRendered.groovy
package org.asciidoctor.diagram
+import jnr.ffi.Platform
import org.asciidoctor.Asciidoctor
import org.asciidoctor.AttributesBuilder
import org.asciidoctor.OptionsBuilder
@@ -58,6 +59,9 @@ Hello World
then:
+ if (Platform.getNativePlatform().OS == Platform.OS.WINDOWS)
+ result.contains("""src="${imagesOutDir.absolutePath.replaceAll("\\\\", "//")}/${imageFileName}.png""")
+ else
result.contains("""src="${imagesOutDir.absolutePath}/${imageFileName}.png""")
createdImage.exists()

fixes Ditaa diagrama test assertion for Windows