aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/cases/identity.bqn17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/cases/identity.bqn b/test/cases/identity.bqn
new file mode 100644
index 00000000..1a65e0a9
--- /dev/null
+++ b/test/cases/identity.bqn
@@ -0,0 +1,17 @@
+# Fold
+∧´ {𝕩≡𝕎´⟨⟩}´¨ ⟨+‿0,-‿0,×‿1,÷‿1,∨‿0,∧‿1⟩
+∧´ {𝕩≡𝕎´⟨⟩}´¨ ⟨⋆‿1,¬‿1,⌊‿∞,⌈‿¯∞⟩
+∧´ {𝕩≡𝕎´⟨⟩}´¨ ⟨≠‿0,=‿1,>‿0,≥‿1⟩
+! % √´↕0
+! % |´↕0
+! % ⊢´""
+! % ⊣´""
+! % ∾´⟨⟩
+! % ≍´⟨⟩
+
+# Insert
+∧´ {(3‿1⥊𝕩)≡𝕎˝0‿3‿1⥊""}´¨ ⟨+‿0,-‿0,×‿1,÷‿1,∨‿0,∧‿1,⋆‿1,¬‿1,⌊‿∞,⌈‿¯∞,≠‿0,=‿1,>‿0,≥‿1⟩
+! % ∾˝""
+(∾˝(↕5)⥊"") ≡ (≠⟜1⊸/↕5)⥊""
+(∾˝¨≡⥊¨) (≍⥊0˙)⌜˜0‿2‿5
+! % ⌽˝0‿3⥊⟨⟩