aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/actions_test.odin23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/actions_test.odin b/tests/actions_test.odin
new file mode 100644
index 0000000..935e168
--- /dev/null
+++ b/tests/actions_test.odin
@@ -0,0 +1,23 @@
+package tests
+
+import "core:testing"
+
+import test "src:testing"
+
+@(test)
+action_remove_unsed_import_when_stmt :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+ import "core:fm{*}t"
+
+ when true {
+ main :: proc() {
+ _ = fmt.printf
+ }
+ }
+ `,
+ packages = {},
+ }
+
+ test.expect_action(t, &source, {})
+}