hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 6f1d95ee4b17d3d74dbb85936f5a9ddb3b43f4f0
parent 49dd6cb556850f04aee2f132307e9127d297262f
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat,  8 Jan 2022 13:51:51 +0100

path::buffer: expand ".." tests

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mpath/buffer.ha | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/path/buffer.ha b/path/buffer.ha @@ -161,4 +161,8 @@ fn doappend(buf: *buffer, elem: []u8) (void | errors::overflow) = { assert(string(&buf) == "foo"); appendnorm(&buf, "..")!; assert(string(&buf) == "."); + appendnorm(&buf, "..")!; + assert(string(&buf) == ".."); + appendnorm(&buf, "..")!; + assert(string(&buf) == "../.."); };