Skip to content

Commit f7208da

Browse files
authored
Merge pull request #6 from queryverse/update-test
Change one test to use LINQ style
2 parents 3619780 + 37d9d65 commit f7208da

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)