Skip to content

Commit

Permalink
git include special tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Nov 28, 2024
1 parent f62f7c1 commit a35c979
Show file tree
Hide file tree
Showing 3 changed files with 110 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ site/dist
*.dll
profile.yaml
uiua.tmLanguage.json
!/tests/*
!/tests_*/*
!/examples/*
!/site/*.ua

Expand Down
101 changes: 101 additions & 0 deletions tests_special/error.ua
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
⊟ [1 2 3] 4_5

≡⊟ [1 2 3] [4 5]

≡⊟ [1 2 3] []
≡(⊂⊂) [1 2 3] [4 5 6] []

∵⊟ [1 2 3] [4 5]

⊡ ↯0_2e [1]

Ex ~ "example"
Ex~RangeDiff

F! ← F!^0
F!+

regex "([a-z]" "hello world"

"Hello"_"Worrld"

⍜⊏() ⊚. [
[0 0 1 0 0]
[0 0 0 0 1]
[1 0 0 0 0]
[0 0 0 1 0]
[0 1 0 0 0]]

F ← [⋅⋅◌⍢(-1:0|>0)]1
F"oops"

F ← [⋅◌ ⍥0] 1
F "oops"

F ← ⌊×10[◌◌⍥gen]⧻:0

⊕⊢ [0 2 2] [1 2 3]

+ ¤[1 2 3] [10_20_30_40 50_60_70_80]

⇡⇡50

x ← &sc
F! ←^ °⋕x◌
F!5

⇡1e20

⬚0≡(++) [1] [2 3 4] [5 6]

5
⊸∘◌

F ← |39 ⍥+

⍜⊏(?≡⊂:9?) [0 2] [1_2 3_4 5_6 7_8]

┌─╴M
F ↚ +1
└─╴
M!F 5

d ← gen [] ⚂
D! ←^ $"_" d ◌
◌D!4

! ← ^0
!(^0)

F ← |0 spawnF
F

┌─╴Foo
|Bar {a}
|Baz {a}
└─╴
⍤⤙≍ 5 Foo~Baz~a Foo~Bar 5

°(⊂0?)

⟜(@a @b)

⊂?⟜(°△⍜⊢¬+1)⇡13

⊂:?⟜(°△⍜⊢¬+1)⇡13

# Experimental!
quote(⊂⊂:⊂⊂,⊸:-7’+1⊡5."quote(⊂⊂:⊂⊂,⊸:-7’+1⊡5.")

°binary 0_1_10

comptime(⍤@@@@)

F! ← ^2

⬚0⌝⊏ ¯2 5
⬚0⌝⊡ ¯2 5

°¤ 1

°[∘] 1
8 changes: 8 additions & 0 deletions tests_special/uasm.ua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{[] "" {} ×i[]}
⍤⤙≍ ⇡4 ≡◇type # No inline!

{[5] "H" {1_2_3} [i]}
{[] "" {} ×i[]}
⍤⤙≍ ⊙(⍚↘1) # No inline!

⍤⤙≍ ↘1"S " @ # No inline!

0 comments on commit a35c979

Please sign in to comment.