mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
context, vweb: add ability to set and get values on vweb.Context (#18564)
This commit is contained in:
@@ -2,7 +2,7 @@ module context
|
||||
|
||||
fn test_background() {
|
||||
ctx := background()
|
||||
assert 'context.Background' == ctx.str()
|
||||
assert '&context.Background' == ctx.str()
|
||||
if _ := ctx.value('') {
|
||||
panic('This should never happen')
|
||||
}
|
||||
@@ -10,7 +10,7 @@ fn test_background() {
|
||||
|
||||
fn test_todo() {
|
||||
ctx := todo()
|
||||
assert 'context.TODO' == ctx.str()
|
||||
assert '&context.TODO' == ctx.str()
|
||||
if _ := ctx.value('') {
|
||||
panic('This should never happen')
|
||||
}
|
||||
|
Reference in New Issue
Block a user