aboutsummaryrefslogtreecommitdiff
path: root/test/testref.bqn
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-06-30 22:05:40 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-06-30 22:07:03 -0400
commit37350b0fbfe69866f4399081c4639fb036dbfd08 (patch)
tree4d3d02a6a95ce70341402714f1f34bc0d4696c58 /test/testref.bqn
parent723f6a92c6af9a46dfbd066fb18e014868bd6487 (diff)
Tests and fixes for layer 5
Diffstat (limited to 'test/testref.bqn')
-rw-r--r--test/testref.bqn50
1 files changed, 50 insertions, 0 deletions
diff --git a/test/testref.bqn b/test/testref.bqn
index bedfbfe0..62758027 100644
--- a/test/testref.bqn
+++ b/test/testref.bqn
@@ -201,4 +201,54 @@
((0∾¨↕3)≍3⥊0)≡≡`↕2‿3
⟨⟩≡×`⟨⟩
≡⟜(!∘0`)3‿0‿2⥊""
+
+ ⍝ LAYER 5
+ ⍝ [183,230)
+ (<'a')≡⊏"abc"
+ "a"≡⊏⥊˘"abc"
+ (<'c')≡2⊏"abc"
+ (<'c')≡¯1⊏"abc"
+ "ccc"≡2‿¯1‿2⊏"abc"
+ ((3-˜↕5)⊸⊏≡2⊸⌽)↕5‿2
+ (0‿3⥊0)≡⟨⟩⊏2‿3⥊↕6
+ ⟨3‿0,2‿1‿2⟩(×⟜5⊸+⌜´∘⊣≡⊏)⥊⟜(↕×´)6‿5
+ (2‿0⥊0)≡⟨3‿¯1,⟨⟩⟩⊏4‿3⥊0
+ 5‿1(<⊸⊏≡⊏)↕6‿2
+ ⟨4‿0,1‿2‿3‿2‿1‿0⟩(+⌜´⊸(×⌜)≡⊏⟜(×⌜˜))+⌜˜↕5
+ "abc"≡3↑"abce"
+ "e"≡¯1↑"abce"
+ ""≡0↑"ab"
+ (<⟜3⊸×↕5)≡5↑↕3
+ (6⥊0)≡¯6↑↕0
+ (≍↕3)≡1↑2‿3⥊↕6
+ (↑⟜4≡⥊⟜0)↕3
+ (≍"abc")≡1↑2‿3↑"abcd"
+ (6⥊1)(↑≡⥊⟜⊑)2‿3⥊↕6
+ (↕¨∘↕∘(1⊸+)≡↑∘↕)5
+ (↑≡((↕4)≍¨2)⥊¨<)3‿2⥊"abcdef"
+ "d"≡3↓"abcd"
+ 1‿2≡⟜(¯3⊸↓)○↕4‿2
+ 1‿1‿3‿2‿1≡≢(5⥊0)↓↕3‿2‿1
+ (↓∘↕≡↕∘(1⊸+)+⟜⌽↑∘↕)5
+ (↕3‿4)≡1↓¨⊏↕2‿3‿4
+ (4+⌜○↕2)≡2↕↕5
+ ⟨⟩(↕≡⊢)4‿3⥊"abcd"
+ (0⊸↕≡(0≍˜1+≠)⊸⥊)↕6
+ (7↕6‿0⥊"")≡0‿7‿0⥊""
+ ≡⟜⌽⟨⟩
+ ≡⟜⌽"a"
+ "ba"≡⟜⌽"ab"
+ (⌽≡(1-˜≠)(-○⊑∾1↓⊢)⚇1⊢)↕3‿2‿4
+ ≡⟜⌽↕↕3
+ ∧´5(⌽≡⊢)¨⟨"",⥊∞,↕5,↕0‿4,2‿0‿3⥊""⟩
+ ∧´("bcdea"≡⌽⟜"abcde")¨1+5ׯ10‿¯2‿¯1‿0‿1‿6‿61
+ ∧´⟨1,0‿2,¯1‿1‿3⟩(⊑∘⌽≡(3⊸↑)⊸⊑)⚇¯1‿∞ 2‿3‿5⥊"abcdef"
+ ⟨⟩(⌽≡⊢)'a'
+ 0‿4≡/1‿0‿0‿0‿1‿0
+ 1‿1‿2≡/0‿2‿1
+ ≡⟜/⟨⟩
+ "aabbcc"≡2/"abc"
+ 3‿3‿3‿2‿2‿1≡/˜3‿2‿1
+ (≍1∾¨1‿2‿2)≡(↕¨/↕)2‿3
+ ⟨⟩(/≡⊢)≍"ab"