Skip to content

Commit

Permalink
fix stringImports again
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
WebFreak001 committed May 2, 2024
1 parent 55fd1c2 commit f814e69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/tc_dub/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f814e69

Please sign in to comment.