mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: fix the test
This commit is contained in:
parent
09340d48a0
commit
c156cef972
@ -125,12 +125,15 @@ fn main() {
|
||||
println('use `v install` to install modules from vpm.vlang.io')
|
||||
return
|
||||
}
|
||||
if args.join(' ').contains(' test v') {
|
||||
test_v()
|
||||
return
|
||||
}
|
||||
if 'install' in args {
|
||||
if args.len < 3 {
|
||||
println('usage: v install [module] [module] [...]')
|
||||
return
|
||||
}
|
||||
|
||||
names := args.slice(2, args.len)
|
||||
vexec := os.executable()
|
||||
vroot := os.dir(vexec)
|
||||
@ -1430,3 +1433,7 @@ fn update_v() {
|
||||
}
|
||||
}
|
||||
|
||||
fn test_v() {
|
||||
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@ pub fn run<T>(port int) {
|
||||
conn := l.accept() or {
|
||||
panic('accept() failed')
|
||||
}
|
||||
foobar<T>()
|
||||
//foobar<T>()
|
||||
// TODO move this to handle_conn<T>(conn, app)
|
||||
s := conn.read_line()
|
||||
if s == '' {
|
||||
|
Loading…
Reference in New Issue
Block a user