Skip to content

Commit

Permalink
test(get_slice): update to upstream changes on fetched url
Browse files Browse the repository at this point in the history
- pin fetched url to a tag reference
  • Loading branch information
ttytm committed Nov 8, 2024
1 parent e7bcf4c commit a28f0d1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/_tests_get_slice_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
module vibe

fn test_get_slice() {
resp := get_slice('https://raw.githubusercontent.com/vlang/v/master/doc/docs.md',
185_000, 10_000)!
resp := get_slice('https://raw.githubusercontent.com/vlang/v/refs/tags/0.4.8/doc/docs.md',
135_000, 10_000)!
assert resp.status == 200
assert resp.body.contains("Module {
\tname: 'mymodule',
\tdescription: 'My nice module wraps a simple C library.',
\tversion: '0.0.1'
\tdependencies: []
}"), resp.body
name: 'mypackage'
description: 'My nice package.'
version: '0.0.1'
license: 'MIT'
dependencies: []
}"), resp.body
}

0 comments on commit a28f0d1

Please # to comment.