From f814e69d5be50943767c26ce1ffe3e1422e56825 Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Thu, 2 May 2024 20:18:34 +0200 Subject: [PATCH] fix stringImports again was [0] before but was changed a while ago in another fix. We don't _really_ care yet where it is, but probably should in the future. --- test/tc_dub/source/app.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/tc_dub/source/app.d b/test/tc_dub/source/app.d index ac6766b..6bea764 100644 --- a/test/tc_dub/source/app.d +++ b/test/tc_dub/source/app.d @@ -24,10 +24,10 @@ void main() // if no dependencies are fetched // or with all dependencies there a lot more assert(dub.imports.length >= 2, dub.imports.to!string); - assert(dub.stringImports[$ - 1].endsWith("views") - || dub.stringImports[$ - 1].endsWith("views/") - || dub.stringImports[$ - 1].endsWith("views\\"), - dub.stringImports.to!string ~ " doesn't end with `views`!"); + assert(dub.stringImports[0].endsWith("views") + || dub.stringImports[0].endsWith("views/") + || dub.stringImports[0].endsWith("views\\"), + dub.stringImports.to!string ~ "[0] doesn't end with `views`!"); assert(dub.fileImports.length > 10); assert(dub.configurations.length == 2); assert(dub.buildTypes.length);