fixes Ditaa diagrama test assertion for Windows
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()
