Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,18 @@
|
||||
// vtest build: amd64 || arm64
|
||||
module context
|
||||
|
||||
fn test_background() {
|
||||
ctx := background()
|
||||
assert '&context.Background' == ctx.str()
|
||||
if _ := ctx.value('') {
|
||||
panic('This should never happen')
|
||||
}
|
||||
}
|
||||
|
||||
fn test_todo() {
|
||||
ctx := todo()
|
||||
assert '&context.TODO' == ctx.str()
|
||||
if _ := ctx.value('') {
|
||||
panic('This should never happen')
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user