summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2020-08-28 20:31:41 +0000
committerOri Bernstein <ori@eigenstate.org>2020-08-28 20:31:41 +0000
commitd90515c5036b9c62dedc9895c781c6459c872209 (patch)
treec5d00a259a1b2ec65671aa1dad2d448677bafbfe
parent4db5274a2f6db10e31e11c503f36c85a98c65fbc (diff)
downloadmc-d90515c5036b9c62dedc9895c781c6459c872209.tar.gz
test/ipparse: put expected and parsed in different buffers
-rw-r--r--lib/std/test/ipparse.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/test/ipparse.myr b/lib/std/test/ipparse.myr
index bab805a..40ff726 100644
--- a/lib/std/test/ipparse.myr
+++ b/lib/std/test/ipparse.myr
@@ -60,13 +60,13 @@ const main = {
}
const eq = {ip, expected
- var dst : byte[16]
+ var pdst, edst : byte[16]
var parsed
var p, e
parsed = std.ipparse(ip)
- p = ipbytes(dst[:], parsed)
- e = ipbytes(dst[:], expected)
+ p = ipbytes(pdst[:], parsed)
+ e = ipbytes(edst[:], expected)
if !std.eq(p, e)
std.fput(1, "misparsed ip {}\n", ip)
std.put("parsed: ")