Skip to content

Commit

Permalink
added unit-testing suite
Browse files Browse the repository at this point in the history
  • Loading branch information
drkameleon committed Aug 27, 2024
1 parent 541f6e0 commit a26fa66
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/tests.art
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import {unitt}!

loop list ./"../src/plugins" 'location [
name: extract.filename location
plugin: # location

run: [do [plugin\action v]]

suite capitalize name [
test "valid" [
assert ->
every? plugin\test\valid 'v run
]
test "invalid" [
assert ->
not? some? plugin\test\invalid 'v run
]
]
]

0 comments on commit a26fa66

Please sign in to comment.