1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: update assoc syntax (#8274)

This commit is contained in:
Daniel Däschle
2021-01-22 23:24:48 +01:00
committed by GitHub
parent 12897d1e2b
commit dbf84520f1
30 changed files with 138 additions and 75 deletions

View File

@ -44,24 +44,23 @@ fn test_smtp() {
return
}
assert true
// client.send({ send_cfg | body_type: .html, body: '<html><h1>HTML V email!</h1></html>' }) or { assert false return }
client.send({
send_cfg |
client.send(smtp.Mail{
...send_cfg
from: 'alexander@vlang.io'
}) or {
assert false
return
}
client.send({
send_cfg |
client.send(smtp.Mail{
...send_cfg
cc: 'alexander@vlang.io,joe@vlang.io'
bcc: 'spytheman@vlang.io'
}) or {
assert false
return
}
client.send({
send_cfg |
client.send(smtp.Mail{
...send_cfg
date: time.now().add_days(1000)
}) or {
assert false