diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-12-15 13:48:04 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-12-15 13:48:04 -0500 |
| commit | 5755cb43272c77751e3a46d29f873c5343633bef (patch) | |
| tree | 2dbb6baa8630434978254e249baa2e9d5a2886c3 /test/cases | |
| parent | 357f93d3529b186a3a9bc53b3cc996adee670eb6 (diff) | |
Tests for Undo with most 1-modifiers
Diffstat (limited to 'test/cases')
| -rw-r--r-- | test/cases/undo.bqn | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/cases/undo.bqn b/test/cases/undo.bqn index d60b9a62..f2a6e1be 100644 --- a/test/cases/undo.bqn +++ b/test/cases/undo.bqn @@ -1,11 +1,20 @@ +# Data +∧´{𝕩≡𝕩⁼𝕩}¨⟨¯∞,3,@,'⁼',↕4⟩ +! % 3⁼4 +! % 2‿3⁼2‿3.1 + # Primitives ∧´ {(𝕎≡𝕎⁼)𝕩}⟜¯0.3‿0‿8¨ +‿-‿÷‿¬‿⊢‿⊣‿⌽ +#! % -⁼ 'a' (√√⁼)⊸≡ 0‿0.4‿π‿1e9‿∞ (⋆⁼⋆)⊸≡ ↕4 1e¯14>|1-⋆+´⋆⁼1(⊢÷«)1+↕11 ∧´ {𝕩≡6𝕎6𝕎⁼𝕩}⟜1‿2‿3¨ +‿-‿×‿÷‿√‿∧‿¬‿⊢ +'a' ≡ 3+⁼'d' +3 % 'd'-⁼'a' 0.3‿1.01‿π(⋆⁼⌜≡÷˜⌜○(⋆⁼))0‿2‿5.6‿∞ (⊢≡⊣⁼˜)"abcd" +! % "ab"⊣⁼"ac" (<⁼<)¨⊸≡⟨0,⟨⟩,"abc"⟩ (/⁼/)⊸≡1‿0‿2‿4 ⟨⟩≡/⁼⟨⟩ @@ -13,3 +22,26 @@ ((≢⍉⁼)≡¯1⌽≢)↕↕4 ≡´⍉⍟¯1‿2⥊⟜(↕×´)2‿3‿3 2‿1(⊢≡⊣⍉⍉⁼)⥊⟜(↕×´)2‿3‿1‿4 + +# Self/Swap +∧´ {6(𝕎˜⁼≡𝕎⁼)𝕩}⟜¯0.8‿0‿3¨ +‿×‿∧ +3.5 % +˜⁼7 +0.5 % ∨˜⁼0.75 +1 % +´∊⟨√,ט⁼,∧˜⁼⟩{𝕎𝕩}⌜0‿2‿∞ +∧´ -‿÷‿⋆ {3(𝕎˜⁼≡𝕏)2‿π∾⋆2}¨ +‿×‿√ +4 % 16√˜⁼2 +4‿2‿0(¬˜⁼≡¯1++)1‿2‿9 + +# Mapping and scan +! % -¨⁼ 2 +! % -⌜⁼ 2 +! % -˘⁼ 2 +! % -˘⁼ <2 +! % -`⁼ 2 +(∾˜ ≡ ·(<⌜⁼∾<¨⁼)<¨) "abcd" +"ab"‿"abc"≡1⌽⁼¨"ba"‿"bca" +(2-=⌜˜↕2)≡/˘⁼0‿1‿1≍0‿0‿1 +2(⌽˘⁼≡·⍉⌽⁼⟜⍉)≍"abcde" +(4⥊1) ≡ +`⁼ 1+↕4 +⟨⟩ ≡ !`⁼⟨⟩ +(-⟜» ≡ +`⁼) 2|⌊×⌜˜π+↕5 |
