Skip to content

Commit 37d9d65

Browse files
committed
Change one test to use LINQ style
1 parent 3619780 commit 37d9d65

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

test/runtests.jl

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ database2 = Database(SQLite.DB(filename))
3939
@drop(10) |>
4040
DataTable).Name) == "C.O.D."
4141

42-
@test first((database.Track |>
43-
@map({_.TrackId, _.Name, _.Bytes}) |>
44-
@orderby_descending(_.Bytes) |>
45-
@thenby(_.Name) |>
46-
DataTable).Bytes) == 1059546140
42+
@test first((
43+
@from i in database.Track begin
44+
@orderby descending(i.Bytes), i.Name
45+
@select {i.TrackId, i.Name, i.Bytes}
46+
@collect DataTable
47+
end
48+
).Bytes) == 1059546140
4749

4850
@test database.Artist |>
4951
@join(database.Album, _.ArtistId, _.ArtistId, {_.ArtistId, __.AlbumId}) |>

0 commit comments

Comments
 (0)