tests/address.R
raw| 1 | suppressPackageStartupMessages(library(pbdZMQ)) |
| 2 | |
| 3 | addr = "notarealaddress.com.biz.google" |
| 4 | port = 8080 |
| 5 | |
| 6 | test = address(addr, port) |
| 7 | truth = paste0("tcp://", addr, ":", port) |
| 8 | stopifnot(identical(test, truth)) |
| 9 | |
| 10 | test = address(addr, transport="ipc") |
| 11 | truth = paste0("ipc://", addr) |
| 12 | stopifnot(identical(test, truth)) |