From f65906721d48321a21c238824b1584a94fa39ce3 Mon Sep 17 00:00:00 2001 From: dzaima Date: Sun, 22 Sep 2024 01:40:21 +0300 Subject: [PATCH] some more system value tests --- test/cases/system.bqn | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/cases/system.bqn b/test/cases/system.bqn index 2a38d9d5..ae40b73c 100644 --- a/test/cases/system.bqn +++ b/test/cases/system.bqn @@ -15,6 +15,13 @@ !"•BQN: Path must be a string" % ⟨1‿2⟩ •BQN "2+2" !"•BQN: Filename must be a string" % ⟨•path, 1‿2⟩ •BQN "2+2" ⟨•path, "abc/def"⟩ •BQN "•name" %% "abc/def" +!"No path present for •path" % •BQN"•path" +!"No arguments present for •args" % •BQN"•args" +!"No name present for •name" % •BQN"•name" +!"No arguments present for •state" % •BQN"•state" +! •path‿""‿"" ≡ ⟨•path⟩•BQN"•state" +! ""‿"" ≡ ¯2↑⟨⟩•BQN"•state" +"args"‿"path"‿"name"‿"helloworld"‿"state"∊•BQN"•listsys" %% 1‿1‿1‿0‿1 !"Failed to resolve ""path that doesn't exist"": No such file or directory" % ⟨"path that doesn't exist"⟩•BQN"•path" !"Failed to resolve ""path that doesn't exist"": No such file or directory" % ⟨"path that doesn't exist"⟩•BQN"•state" ⟨"path that doesn't exist"⟩•BQN"2+2" %% 4