rix icon indicating copy to clipboard operation
rix copied to clipboard

Figure out what's wrong with path parsing

Open arduano opened this issue 1 year ago • 1 comments

These 2 test cases:

        assert_eq!(
            eval_ok("builtins.baseNameOf /foo/bar/baz/"),
            Value::Str("baz".into())
        );
        assert_eq!(
            eval_ok("(builtins.baseNameOf (/foo/bar/baz/))"),
            Value::Str("baz".into())
        );

Produce some very weird/unexpected results, including a panic on the second one.

arduano avatar Apr 29 '24 22:04 arduano

In theory, paths cant have trailing slashes in the first place, and it should throw a parser error there instead.

arduano avatar Apr 29 '24 22:04 arduano