Skip to content

Commit f814e69

Browse files
committed
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.
1 parent 55fd1c2 commit f814e69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/tc_dub/source/app.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ void main()
2424
// if no dependencies are fetched
2525
// or with all dependencies there a lot more
2626
assert(dub.imports.length >= 2, dub.imports.to!string);
27-
assert(dub.stringImports[$ - 1].endsWith("views")
28-
|| dub.stringImports[$ - 1].endsWith("views/")
29-
|| dub.stringImports[$ - 1].endsWith("views\\"),
30-
dub.stringImports.to!string ~ " doesn't end with `views`!");
27+
assert(dub.stringImports[0].endsWith("views")
28+
|| dub.stringImports[0].endsWith("views/")
29+
|| dub.stringImports[0].endsWith("views\\"),
30+
dub.stringImports.to!string ~ "[0] doesn't end with `views`!");
3131
assert(dub.fileImports.length > 10);
3232
assert(dub.configurations.length == 2);
3333
assert(dub.buildTypes.length);

0 commit comments

Comments
 (0)